Hi,
I'm running version 8.31.
I have a task defined as:
Execute
command: ftp.exe
Arguments: -s:getfiles.txt
The task logons onto a ftp server, the getfiles.txt contains simple ftp commands to LS the contents of the directory to a file name fd.txt
The task's Execution context is : Background execution.
The task is used in a number of jobs.
These jobs run throughout day. This equates to several hundred runs of the task. it work without issue.
However if I do not reboot the PC (Windows 7 Professional / SP1) where these jobs run once a day, the task will begin to fail with the error message
Exception in Task: Non zero exit code
Exit code (-1073741502) description: The process failed to start due to some policy or permissions restriction. You can try to disable UAC in Server tab->Server settings and reboot or enable Extended debugging in Server settings->Log, then edit the Credential that you use and select option CreateProcessAsUserW - then try the Task again.
Rebooting the PC resolves the problem.
I also note, when the error occurs, and I change the execution context to Foreground execution, Execute on any desktop session, the task will run (no reboot required).
Why does the task work in background execution (which I prefer) but fails after a day or so of running, requiring a reboot?