POP3 PlugIn Error Message

Discuss RoboTask here
Post Reply
OldGeek
Posts: 35
Joined: Thu Jun 01, 2023 2:50 pm
Location: Upstate NY

POP3 PlugIn Error Message

Post by OldGeek »

======================
My Error Message
======================

Code: Select all

I 8/14/2024 7:45:39 PM: ****** Starting task: Office365 POP3 ******************
I 8/14/2024 7:45:39 PM: Executing "1.Set variable "MsgCount" with value "0""
I 8/14/2024 7:45:39 PM: Executing "2.Set variable "MsgNum" with value "1""
I 8/14/2024 7:45:39 PM: Executing "3.Create local variable "MsgSub" with value """
I 8/14/2024 7:45:39 PM: Executing "4.Create local variable "MsgDate" with value """
I 8/14/2024 7:45:39 PM: Executing "5.POP3 Open"
I 8/14/2024 7:45:39 PM: Executing "6.POP3 Messages Count"
I 8/14/2024 7:45:40 PM: Executing "7.Log Message"
  8/14/2024 7:45:40 PM: Msg Count: 356
I 8/14/2024 7:45:40 PM: Executing "8.POP3 Mail Loop"
I 8/14/2024 7:45:40 PM: Executing "9.Log Message"
  8/14/2024 7:45:40 PM: MsgNum: 1
I 8/14/2024 7:45:40 PM: Executing "10.Start Task: PadZero"
I 8/14/2024 7:45:40 PM: Executing "11.POP3 Download Message"
I 8/14/2024 7:45:40 PM: Executing "12.Increment variable "MsgNum""
I 8/14/2024 7:45:40 PM: Executing "13.Delay 0.100 ms"
I 8/14/2024 7:45:40 PM: Executing "14.End Loop"
I 8/14/2024 7:45:40 PM: Executing "8.POP3 Mail Loop"
I 8/14/2024 7:45:40 PM: Executing "9.Log Message"
  8/14/2024 7:45:40 PM: MsgNum: 2
I 8/14/2024 7:45:40 PM: Executing "10.Start Task: PadZero"
I 8/14/2024 7:45:40 PM: Executing "11.POP3 Download Message"
I 8/14/2024 7:45:41 PM: Executing "12.Increment variable "MsgNum""
I 8/14/2024 7:45:41 PM: Executing "13.Delay 0.100 ms"
I 8/14/2024 7:45:41 PM: Executing "14.End Loop"
I 8/14/2024 7:45:41 PM: Executing "8.POP3 Mail Loop"
E 8/14/2024 7:45:41 PM: 
E 8/14/2024 7:45:41 PM: Failed execute 'ExecAction with exception: ' (C:\Program Files\RoboTask\Plugins\eMail\eMail.rtp)
E 8/14/2024 7:45:41 PM: An error occurred. Reconfigure this step.
E 8/14/2024 7:45:41 PM: Task execution is aborted
======================
My Task Script
======================

Code: Select all

;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
 
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|602291788
Comment=STRINGLIST
ContinueOnError=INTEGER|0
DisableOnError=INTEGER|0
DoNotStopWhenShutdown=INTEGER|0
ExternalName=STRING|"Task8"
Hide=INTEGER|0
ID=INTEGER|-2057055385
LogOnAsUser=INTEGER|1
Name=STRING|"Office365 POP3"
OnErrorTaskID=INTEGER|0
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
StepPause=INTEGER|0
ToLog=INTEGER|3
UnicodeFormat=INTEGER|1
WriteGeneralLog=INTEGER|0

[Actions]
Action1=FOLDER
Action10=FOLDER
Action11=FOLDER
Action12=FOLDER
Action13=FOLDER
Action14=FOLDER
Action15=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
Action5=FOLDER
Action6=FOLDER
Action7=FOLDER
Action8=FOLDER
Action9=FOLDER

[Actions\Action1]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""MsgCount"" with value ""0"""
Params=FOLDER

[Actions\Action1\Params]
_rt_variables_produced=STRING|"MsgCount"
expand=STRING|"0"
linecount=STRING|"1"
varname=STRING|"MsgCount"
varvalue=STRING|"0"

[Actions\Action10]
ActionID=STRING|"A_TASKS_START"
Enabled=INTEGER|-1
Name=STRING|"Start Task: PadZero"
Params=FOLDER

[Actions\Action10\Params]
_rt_variables_produced=STRING|"strResults"
abort=STRING|"0"
namevar=STRING|"strResults"
parameter0000=STRING|"Parm1=2"
parameter0001=STRING|"Parm2={msgNum}"
parametercount=STRING|"2"
required=STRING|"0"
saveresult=STRING|"1"
taskextname=STRING|"Task28"
taskid=STRING|"$1B410C4F"
taskmode=STRING|"0"
wait=STRING|"1"

[Actions\Action11]
ActionID=STRING|"E_EMAIL_DOWNLOAD"
Enabled=INTEGER|-1
Name=STRING|"POP3 Download Message"
Params=FOLDER

[Actions\Action11\Params]
extract=STRING|"0"
num=STRING|"MsgNum"
overwrite=STRING|"0"
savefilenames=STRING|"0"
savetofile=STRING|"{TaskFolder}\eMail\Msg-{strResults} {Year}-{MonthNo}-{Day} {Hours}-{Minutes}-{Seconds}.txt"

[Actions\Action12]
ActionID=STRING|"A_VARIABLES_INCREMENT"
Enabled=INTEGER|-1
Name=STRING|"Increment variable ""MsgNum"""
Params=FOLDER

[Actions\Action12\Params]
incement=STRING|"1"
vaiable=STRING|"MsgNum"

[Actions\Action13]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 0.100 ms"
Params=FOLDER

[Actions\Action13\Params]
delay=STRING|"0.100"
dimension=STRING|"0"

[Actions\Action14]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"End Loop"

[Actions\Action15]
ActionID=STRING|"A_EMAIL_CLOSE"
Enabled=INTEGER|-1
Name=STRING|"POP3 Close"

[Actions\Action2]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""MsgNum"" with value ""1"""
Params=FOLDER

[Actions\Action2\Params]
_rt_variables_produced=STRING|"MsgNum"
expand=STRING|"0"
linecount=STRING|"1"
varname=STRING|"MsgNum"
varvalue=STRING|"1"

[Actions\Action3]
ActionID=STRING|"A_VARIABLES_CREATE"
Enabled=INTEGER|-1
Name=STRING|"Create local variable ""MsgSub"" with value """""
Params=FOLDER

[Actions\Action3\Params]
_rt_variables_produced=STRING|"MsgSub"
expand=STRING|"0"
linecount=STRING|"0"
varkind=STRING|"1"
varname=STRING|"MsgSub"

[Actions\Action4]
ActionID=STRING|"A_VARIABLES_CREATE"
Enabled=INTEGER|-1
Name=STRING|"Create local variable ""MsgDate"" with value """""
Params=FOLDER

[Actions\Action4\Params]
_rt_variables_produced=STRING|"MsgDate"
expand=STRING|"0"
linecount=STRING|"0"
varkind=STRING|"1"
varname=STRING|"MsgDate"

[Actions\Action5]
ActionID=STRING|"A_EMAIL_OPEN"
Enabled=INTEGER|-1
Name=STRING|"POP3 Open"
Params=FOLDER

[Actions\Action5\Params]
host=STRING|"smtp.office365.com"
oauthmode=STRING|"0"
password=STRING|"4438845245462874500344480"
port=STRING|"995"
SSL=STRING|"1"
SSL2=STRING|"1"
SSL3=STRING|"1"
TLS10=STRING|"1"
TLS11=STRING|"1"
TLS12=STRING|"1"
user=STRING|"user@outlook.com"

[Actions\Action6]
ActionID=STRING|"A_EMAIL_COUNT"
Enabled=INTEGER|-1
Name=STRING|"POP3 Messages Count"
Params=FOLDER

[Actions\Action6\Params]
_rt_variables_produced=STRING|"MsgCount"
amount=STRING|"1"
amountvar=STRING|"MsgCount"
size=STRING|"0"

[Actions\Action7]
ActionID=STRING|"A_ROBOTASK_LOG"
Enabled=INTEGER|-1
Name=STRING|"Log Message"
Params=FOLDER

[Actions\Action7\Params]
message=STRING|"Msg Count: {MsgCount}"
type=STRING|"3"

[Actions\Action8]
ActionID=STRING|"A_EMAIL_LOOP"
Enabled=INTEGER|-1
Name=STRING|"POP3 Mail Loop"
Params=FOLDER

[Actions\Action8\Params]
_rt_variables_produced=STRING|"MsgDate,MsgNum,MsgSub"
breakafter=STRING|"1"
date=STRING|"MsgDate"
limit=STRING|"5"
number=STRING|"MsgNum"
reverse=STRING|"0"
subj=STRING|"MsgSub"
usecc=STRING|"0"
usedate=STRING|"1"
usefrom=STRING|"0"
usepriority=STRING|"0"
usesize=STRING|"0"
usesubj=STRING|"1"
useto=STRING|"0"

[Actions\Action9]
ActionID=STRING|"A_ROBOTASK_LOG"
Enabled=INTEGER|-1
Name=STRING|"Log Message"
Params=FOLDER

[Actions\Action9\Params]
message=STRING|"MsgNum: {MsgNum}"
type=STRING|"3"
Windows 11 Pro, RoboTask v10.0.2
Oleg
Site Admin
Posts: 3201
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: POP3 PlugIn Error Message

Post by Oleg »

1. Remove step #12 (Increment variable "MsgNum"). It makes no sense. POP3 mail loop does this automatically at each iteration.

2. About your error: maybe the expressions {strResults} contains prohibited symbols for file name
use the expression {ValidFileName({strResults})}
Also I don't know what the PadZero task does

I use such expression in my test example: C:\temp\mspop\{DateTimeToFormat({Dt},yyyy-mm-dd-hh-nn-ss)}-{ValidFileName({subj})}.eml
{dt} - message date-time
{subj} - message subject

the task looks like this (see screenshot). It downloads 50 messages from my account without problem
test-email-task.png
test-email-task.png (10.22 KiB) Viewed 44160 times
The task log is below. I see no errors

Code: Select all

I: 15.08.2024 9:32:17: ****** Starting task: POP3 Open... ******************
I: 15.08.2024 9:32:17: Executing "1.POP3 Open"
I: 15.08.2024 9:32:19: Executing "2.POP3 Messages Count"
I: 15.08.2024 9:32:19: Executing "3.Log Message"
-: 15.08.2024 9:32:19: 46
I: 15.08.2024 9:32:19: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:19: Executing "5.Log Message"
-: 15.08.2024 9:32:19: 1; Updates to our terms of use
I: 15.08.2024 9:32:19: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:19: Executing "7.End Loop"
I: 15.08.2024 9:32:19: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:20: Executing "5.Log Message"
-: 15.08.2024 9:32:20: 2; Verification E-Mail
I: 15.08.2024 9:32:20: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:20: Executing "7.End Loop"
I: 15.08.2024 9:32:20: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:20: Executing "5.Log Message"
-: 15.08.2024 9:32:20: 3; You can speed up tasks on your PC
I: 15.08.2024 9:32:20: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:20: Executing "7.End Loop"
I: 15.08.2024 9:32:20: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:20: Executing "5.Log Message"
-: 15.08.2024 9:32:20: 4; Updates to our terms of use
I: 15.08.2024 9:32:20: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:21: Executing "7.End Loop"
I: 15.08.2024 9:32:21: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:21: Executing "5.Log Message"
-: 15.08.2024 9:32:21: 5; Microsoft account password change
I: 15.08.2024 9:32:21: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:21: Executing "7.End Loop"
I: 15.08.2024 9:32:21: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:21: Executing "5.Log Message"
-: 15.08.2024 9:32:21: 6; Оновлення наших умов використання
I: 15.08.2024 9:32:21: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:21: Executing "7.End Loop"
I: 15.08.2024 9:32:21: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:21: Executing "5.Log Message"
-: 15.08.2024 9:32:21: 7; This month’s milestones and new features
I: 15.08.2024 9:32:21: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:21: Executing "7.End Loop"
I: 15.08.2024 9:32:21: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:21: Executing "5.Log Message"
-: 15.08.2024 9:32:21: 8; We’re excited about these new features!
I: 15.08.2024 9:32:21: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:22: Executing "7.End Loop"
I: 15.08.2024 9:32:22: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:22: Executing "5.Log Message"
-: 15.08.2024 9:32:22: 9; Happy holidays from the Windows Insider team!
I: 15.08.2024 9:32:22: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:22: Executing "7.End Loop"
I: 15.08.2024 9:32:22: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:22: Executing "5.Log Message"
-: 15.08.2024 9:32:22: 10; Look back at 2020 and forward to 2021 with the Windows Insider team
I: 15.08.2024 9:32:22: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:22: Executing "7.End Loop"
I: 15.08.2024 9:32:22: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:22: Executing "5.Log Message"
-: 15.08.2024 9:32:22: 11; Meet our new 2021 Windows Insider MVPs!
I: 15.08.2024 9:32:22: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:23: Executing "7.End Loop"
I: 15.08.2024 9:32:23: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:23: Executing "5.Log Message"
-: 15.08.2024 9:32:23: 12; Your OneDrive has been unfrozen
I: 15.08.2024 9:32:23: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:23: Executing "7.End Loop"
I: 15.08.2024 9:32:23: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:23: Executing "5.Log Message"
-: 15.08.2024 9:32:23: 13; Power Automate – April Newsletter
I: 15.08.2024 9:32:23: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:23: Executing "7.End Loop"
I: 15.08.2024 9:32:23: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:24: Executing "5.Log Message"
-: 15.08.2024 9:32:24: 14; Updates to our terms of use
I: 15.08.2024 9:32:24: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:24: Executing "7.End Loop"
I: 15.08.2024 9:32:24: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:24: Executing "5.Log Message"
-: 15.08.2024 9:32:24: 15; Power Automate – May 2021 Newsletter
I: 15.08.2024 9:32:24: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:24: Executing "7.End Loop"
I: 15.08.2024 9:32:24: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:24: Executing "5.Log Message"
-: 15.08.2024 9:32:24: 16; Introducing Windows 11
I: 15.08.2024 9:32:24: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:24: Executing "7.End Loop"
I: 15.08.2024 9:32:24: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:25: Executing "5.Log Message"
-: 15.08.2024 9:32:25: 17; Announcing Windows 11. Be among the first to try it out!
I: 15.08.2024 9:32:25: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:25: Executing "7.End Loop"
I: 15.08.2024 9:32:25: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:25: Executing "5.Log Message"
-: 15.08.2024 9:32:25: 18; Check out the latest Power Automate updates, learning, and resources
I: 15.08.2024 9:32:25: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:25: Executing "7.End Loop"
I: 15.08.2024 9:32:25: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:25: Executing "5.Log Message"
-: 15.08.2024 9:32:25: 19; Check out the latest Power Automate updates, success stories, and learning
I: 15.08.2024 9:32:25: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:25: Executing "7.End Loop"
I: 15.08.2024 9:32:25: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:26: Executing "5.Log Message"
-: 15.08.2024 9:32:26: 20; Microsoft Power Automate – September Newsletter
I: 15.08.2024 9:32:26: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:26: Executing "7.End Loop"
I: 15.08.2024 9:32:26: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:26: Executing "5.Log Message"
-: 15.08.2024 9:32:26: 21; Windows 11 is now available to everyone.
I: 15.08.2024 9:32:26: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:26: Executing "7.End Loop"
I: 15.08.2024 9:32:26: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:26: Executing "5.Log Message"
-: 15.08.2024 9:32:26: 22; Microsoft Power Automate – October Newsletter
I: 15.08.2024 9:32:26: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:26: Executing "7.End Loop"
I: 15.08.2024 9:32:26: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:26: Executing "5.Log Message"
-: 15.08.2024 9:32:26: 23; Power Automate – November newsletter
I: 15.08.2024 9:32:26: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:27: Executing "7.End Loop"
I: 15.08.2024 9:32:27: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:27: Executing "5.Log Message"
-: 15.08.2024 9:32:27: 24; Power Automate – December newsletter
I: 15.08.2024 9:32:27: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:27: Executing "7.End Loop"
I: 15.08.2024 9:32:27: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:27: Executing "5.Log Message"
-: 15.08.2024 9:32:27: 25; Power Automate – January newsletter
I: 15.08.2024 9:32:27: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:27: Executing "7.End Loop"
I: 15.08.2024 9:32:27: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:28: Executing "5.Log Message"
-: 15.08.2024 9:32:28: 26; Check out our new icon for Windows Insider Program.
I: 15.08.2024 9:32:28: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:28: Executing "7.End Loop"
I: 15.08.2024 9:32:28: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:28: Executing "5.Log Message"
-: 15.08.2024 9:32:28: 27; Action pending: Complete your purchase of a monthly Microsoft Personal 365 plan
I: 15.08.2024 9:32:28: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:28: Executing "7.End Loop"
I: 15.08.2024 9:32:28: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:28: Executing "5.Log Message"
-: 15.08.2024 9:32:28: 28; Microsoft Power Automate April newsletter
I: 15.08.2024 9:32:28: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:28: Executing "7.End Loop"
I: 15.08.2024 9:32:28: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:28: Executing "5.Log Message"
-: 15.08.2024 9:32:28: 29; Microsoft Power Automate May newsletter
I: 15.08.2024 9:32:28: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:29: Executing "7.End Loop"
I: 15.08.2024 9:32:29: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:29: Executing "5.Log Message"
-: 15.08.2024 9:32:29: 30; Experience new features in Windows 11
I: 15.08.2024 9:32:29: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:29: Executing "7.End Loop"
I: 15.08.2024 9:32:29: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:29: Executing "5.Log Message"
-: 15.08.2024 9:32:29: 31; Microsoft Power Automate June newsletter
I: 15.08.2024 9:32:29: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:29: Executing "7.End Loop"
I: 15.08.2024 9:32:29: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:29: Executing "5.Log Message"
-: 15.08.2024 9:32:29: 32; Updates to our terms of use
I: 15.08.2024 9:32:29: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:30: Executing "7.End Loop"
I: 15.08.2024 9:32:30: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:30: Executing "5.Log Message"
-: 15.08.2024 9:32:30: 33; Microsoft Power Automate July newsletter
I: 15.08.2024 9:32:30: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:30: Executing "7.End Loop"
I: 15.08.2024 9:32:30: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:30: Executing "5.Log Message"
-: 15.08.2024 9:32:30: 34; Have you tried Dev Drive already?
I: 15.08.2024 9:32:30: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:30: Executing "7.End Loop"
I: 15.08.2024 9:32:30: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:31: Executing "5.Log Message"
-: 15.08.2024 9:32:31: 35; Introducing Copilot in Windows, new AI tools, and more
I: 15.08.2024 9:32:31: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:31: Executing "7.End Loop"
I: 15.08.2024 9:32:31: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:31: Executing "5.Log Message"
-: 15.08.2024 9:32:31: 36; Many files were recently deleted from your OneDrive
I: 15.08.2024 9:32:31: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:31: Executing "7.End Loop"
I: 15.08.2024 9:32:31: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:31: Executing "5.Log Message"
-: 15.08.2024 9:32:31: 37; New app(s) connected to your Microsoft account
I: 15.08.2024 9:32:31: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:31: Executing "7.End Loop"
I: 15.08.2024 9:32:31: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:32: Executing "5.Log Message"
-: 15.08.2024 9:32:32: 38; New app(s) connected to your Microsoft account
I: 15.08.2024 9:32:32: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:32: Executing "7.End Loop"
I: 15.08.2024 9:32:32: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:32: Executing "5.Log Message"
-: 15.08.2024 9:32:32: 39; Welcome to your new Outlook.com account
I: 15.08.2024 9:32:32: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:32: Executing "7.End Loop"
I: 15.08.2024 9:32:32: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:33: Executing "5.Log Message"
-: 15.08.2024 9:32:33: 40; We’d like to learn more about you
I: 15.08.2024 9:32:33: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:33: Executing "7.End Loop"
I: 15.08.2024 9:32:33: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:33: Executing "5.Log Message"
-: 15.08.2024 9:32:33: 41; Windows 11 2022 Update available in 190+ countries
I: 15.08.2024 9:32:33: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:33: Executing "7.End Loop"
I: 15.08.2024 9:32:33: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:33: Executing "5.Log Message"
-: 15.08.2024 9:32:33: 42; Learn about the Windows 11 PC Gaming features
I: 15.08.2024 9:32:33: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:33: Executing "7.End Loop"
I: 15.08.2024 9:32:33: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:34: Executing "5.Log Message"
-: 15.08.2024 9:32:34: 43; Changes to the Windows Insider channels
I: 15.08.2024 9:32:34: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:34: Executing "7.End Loop"
I: 15.08.2024 9:32:34: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:34: Executing "5.Log Message"
-: 15.08.2024 9:32:34: 44; Preview live captions in more languages
I: 15.08.2024 9:32:34: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:34: Executing "7.End Loop"
I: 15.08.2024 9:32:34: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:34: Executing "5.Log Message"
-: 15.08.2024 9:32:34: 45; Updates to our terms of use
I: 15.08.2024 9:32:34: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:34: Executing "7.End Loop"
I: 15.08.2024 9:32:34: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:34: Executing "5.Log Message"
-: 15.08.2024 9:32:34: 46;      Welcome to Windows 11. We’re glad you’re here.
I: 15.08.2024 9:32:34: Executing "6.POP3 Download Message"
I: 15.08.2024 9:32:35: Executing "7.End Loop"
I: 15.08.2024 9:32:35: Executing "4.POP3 Mail Loop"
I: 15.08.2024 9:32:35: Task executed successfully
Oleg Yershov
OldGeek
Posts: 35
Joined: Thu Jun 01, 2023 2:50 pm
Location: Upstate NY

Re: POP3 PlugIn Error Message

Post by OldGeek »

=====================
I'm still getting this error
=====================

Code: Select all

I 8/15/2024 10:39:21 AM: ****** Starting task: Office365 POP3 ******************
I 8/15/2024 10:39:21 AM: Executing "1.Set variable "MsgCount" with value "0""
I 8/15/2024 10:39:21 AM: Executing "2.Set variable "MsgNum" with value "1""
I 8/15/2024 10:39:21 AM: Executing "3.Create local variable "MsgSub" with value """
I 8/15/2024 10:39:21 AM: Executing "4.Create local variable "MsgDate" with value """
I 8/15/2024 10:39:21 AM: Executing "5.POP3 Open"
I 8/15/2024 10:39:22 AM: Executing "6.POP3 Messages Count"
I 8/15/2024 10:39:22 AM: Executing "7.Log Message"
  8/15/2024 10:39:22 AM: Msg Count: 354
I 8/15/2024 10:39:22 AM: Executing "8.POP3 Mail Loop"
I 8/15/2024 10:39:22 AM: Executing "9.Log Message"
I 8/15/2024 10:39:22 AM: MsgNum: 1
I 8/15/2024 10:39:22 AM: Executing "10.POP3 Download Message"
I 8/15/2024 10:39:22 AM: Executing "11.End Loop"
I 8/15/2024 10:39:22 AM: Executing "8.POP3 Mail Loop"
I 8/15/2024 10:39:22 AM: Executing "9.Log Message"
I 8/15/2024 10:39:22 AM: MsgNum: 2
I 8/15/2024 10:39:22 AM: Executing "10.POP3 Download Message"
I 8/15/2024 10:39:22 AM: Executing "11.End Loop"
I 8/15/2024 10:39:22 AM: Executing "8.POP3 Mail Loop"
E 8/15/2024 10:39:22 AM: 
E 8/15/2024 10:39:22 AM: Failed execute 'ExecAction with exception: ' (C:\Program Files\RoboTask\Plugins\eMail\eMail.rtp)
E 8/15/2024 10:39:22 AM: An error occurred. Reconfigure this step.
E 8/15/2024 10:39:22 AM: Task execution is aborted
=====================
Here is my script
=====================

Code: Select all

;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
 
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|602291788
Comment=STRINGLIST
ContinueOnError=INTEGER|0
DisableOnError=INTEGER|0
DoNotStopWhenShutdown=INTEGER|0
ExternalName=STRING|"Task8"
Hide=INTEGER|0
ID=INTEGER|-2057055385
LogOnAsUser=INTEGER|1
Name=STRING|"Office365 POP3"
OnErrorTaskID=INTEGER|0
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
StepPause=INTEGER|0
ToLog=INTEGER|3
UnicodeFormat=INTEGER|1
WriteGeneralLog=INTEGER|0

[Actions]
Action1=FOLDER
Action10=FOLDER
Action11=FOLDER
Action12=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
Action5=FOLDER
Action6=FOLDER
Action7=FOLDER
Action8=FOLDER
Action9=FOLDER

[Actions\Action1]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""MsgCount"" with value ""0"""
Params=FOLDER

[Actions\Action1\Params]
_rt_variables_produced=STRING|"MsgCount"
expand=STRING|"0"
linecount=STRING|"1"
varname=STRING|"MsgCount"
varvalue=STRING|"0"

[Actions\Action10]
ActionID=STRING|"E_EMAIL_DOWNLOAD"
Enabled=INTEGER|-1
Name=STRING|"POP3 Download Message"
Params=FOLDER

[Actions\Action10\Params]
extract=STRING|"0"
num=STRING|"MsgNum"
overwrite=STRING|"0"
savefilenames=STRING|"0"
savetofile=STRING|"{TaskFolder}\eMail\Outlook-{MsgNum} {Year}-{MonthNo}-{Day} {Hours}-{Minutes}-{Seconds}.eml"

[Actions\Action11]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"End Loop"

[Actions\Action12]
ActionID=STRING|"A_EMAIL_CLOSE"
Enabled=INTEGER|-1
Name=STRING|"POP3 Close"

[Actions\Action2]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""MsgNum"" with value ""1"""
Params=FOLDER

[Actions\Action2\Params]
_rt_variables_produced=STRING|"MsgNum"
expand=STRING|"0"
linecount=STRING|"1"
varname=STRING|"MsgNum"
varvalue=STRING|"1"

[Actions\Action3]
ActionID=STRING|"A_VARIABLES_CREATE"
Enabled=INTEGER|-1
Name=STRING|"Create local variable ""MsgSub"" with value """""
Params=FOLDER

[Actions\Action3\Params]
_rt_variables_produced=STRING|"MsgSub"
expand=STRING|"0"
linecount=STRING|"0"
varkind=STRING|"1"
varname=STRING|"MsgSub"

[Actions\Action4]
ActionID=STRING|"A_VARIABLES_CREATE"
Enabled=INTEGER|-1
Name=STRING|"Create local variable ""MsgDate"" with value """""
Params=FOLDER

[Actions\Action4\Params]
_rt_variables_produced=STRING|"MsgDate"
expand=STRING|"0"
linecount=STRING|"0"
varkind=STRING|"1"
varname=STRING|"MsgDate"

[Actions\Action5]
ActionID=STRING|"A_EMAIL_OPEN"
Enabled=INTEGER|-1
Name=STRING|"POP3 Open"
Params=FOLDER

[Actions\Action5\Params]
host=STRING|"smtp.office365.com"
oauthmode=STRING|"0"
password=STRING|"4438845245462874500344480"
port=STRING|"995"
SSL=STRING|"1"
SSL2=STRING|"1"
SSL3=STRING|"1"
TLS10=STRING|"1"
TLS11=STRING|"1"
TLS12=STRING|"1"
user=STRING|"user@outlook.com"

[Actions\Action6]
ActionID=STRING|"A_EMAIL_COUNT"
Enabled=INTEGER|-1
Name=STRING|"POP3 Messages Count"
Params=FOLDER

[Actions\Action6\Params]
_rt_variables_produced=STRING|"MsgCount"
amount=STRING|"1"
amountvar=STRING|"MsgCount"
size=STRING|"0"

[Actions\Action7]
ActionID=STRING|"A_ROBOTASK_LOG"
Enabled=INTEGER|-1
Name=STRING|"Log Message"
Params=FOLDER

[Actions\Action7\Params]
message=STRING|"Msg Count: {MsgCount}"
type=STRING|"3"

[Actions\Action8]
ActionID=STRING|"A_EMAIL_LOOP"
Enabled=INTEGER|-1
Name=STRING|"POP3 Mail Loop"
Params=FOLDER

[Actions\Action8\Params]
_rt_variables_produced=STRING|"MsgDate,MsgNum,MsgSub"
breakafter=STRING|"1"
date=STRING|"MsgDate"
limit=STRING|"5"
number=STRING|"MsgNum"
reverse=STRING|"0"
subj=STRING|"MsgSub"
usecc=STRING|"0"
usedate=STRING|"1"
usefrom=STRING|"0"
usepriority=STRING|"0"
usesize=STRING|"0"
usesubj=STRING|"1"
useto=STRING|"0"

[Actions\Action9]
ActionID=STRING|"A_ROBOTASK_LOG"
Enabled=INTEGER|-1
Name=STRING|"Log Message"
Params=FOLDER

[Actions\Action9\Params]
message=STRING|"MsgNum: {MsgNum}"
type=STRING|"0"
Windows 11 Pro, RoboTask v10.0.2
Oleg
Site Admin
Posts: 3201
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: POP3 PlugIn Error Message

Post by Oleg »

Hm-m-m...
Probably there is some problem in the 3-d message.
Try to switch off Subject and Message Date parameters in Mail loop action. we'll try to investigate such problem
Mail_Loop_params.png
Mail_Loop_params.png (27.94 KiB) Viewed 44080 times
Oleg Yershov
OldGeek
Posts: 35
Joined: Thu Jun 01, 2023 2:50 pm
Location: Upstate NY

Re: POP3 PlugIn Error Message

Post by OldGeek »

Here is my Download Message
{TaskFolder}\eMail\{ValidFileName(Outlook-{MsgNum} {Year}-{MonthNo}-{Day}.eml)}

I even added to the POP3 Mail Loop: X Process messages in reverse order

Here is my error message before turning off Message Subject and Date
================
Error Handling Task
Task ID: 8563D367
External Name: Task8
Error Step: 9
Error Code: 65535
Error Description: Failed execute ’ExecAction with exception: ’ (C:\Prog
Image

Here is my error message after turning off Message Subject and Date
================
Error Handling Task
Task ID: 8563D367
External Name: Task8
Error Step: 12
Error Code: 3
Error Description: Connection Closed Gracefully.
Image
Windows 11 Pro, RoboTask v10.0.2
Oleg
Site Admin
Posts: 3201
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: POP3 PlugIn Error Message

Post by Oleg »

It seems you can not download this message at all (for some reason)
Could you look at your mailbox via web interface and remove this message if this message does not contain any important information?

I've already shown that I was able to download 50 emails with no problem.
Oleg Yershov
OldGeek
Posts: 35
Joined: Thu Jun 01, 2023 2:50 pm
Location: Upstate NY

Re: POP3 PlugIn Error Message

Post by OldGeek »

made a new task following your steps and it worked. Not sure why the new one works and the old one didn't but I'm happy I got something to work using Outlook 365.

Looking closer the task that didn't work used Host: smtp.office365.com and the task that did work used Host: outlook.office365.com

Thank you for your help
Windows 11 Pro, RoboTask v10.0.2
Oleg
Site Admin
Posts: 3201
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: POP3 PlugIn Error Message

Post by Oleg »

Looking closer the task that didn't work used Host: smtp.office365.com and the task that did work used Host: outlook.office365.com
My slipup. I didn't notice that you were using an SMTP host.

smtp.office365.com is the host for outgoing messages only. I don't understand why it worked at all for the two emails...
You should use
host = outlook.office365.com
port = 995
POP3_Open_parameters.png
POP3_Open_parameters.png (14.91 KiB) Viewed 43985 times

Read here official information about office365 connection parameters for POP3, IMAP4 and SMTP protocols
Oleg Yershov
Post Reply