AL icon indicating copy to clipboard operation
AL copied to clipboard

Scheduled tasks aren't executed

Open claudio1981 opened this issue 8 years ago • 3 comments

When a new task is created using TASKSCHEDULER.CREATETASK, the task is created in table 2000000175 "Scheduled Task" and then deleted by the scheduler after the "Not Before" condition is fullfilled, but the scheduled codeunit isn't really run.

The codeunit that was scheduled run without issues if executed manually.

I'm using the last available sandbox environment for Dynamics 365 Business Central.

claudio1981 avatar Apr 19 '18 13:04 claudio1981

This is probably related to Windows authentication. Try to run your sandbox environment using NavUserPassword auth. - then they should run.

freddydk avatar Apr 23 '18 10:04 freddydk

I can confirm that using NavUserPassword auth the task scheduler works, thanks. Is this a bug that will be fixed in a future release?

claudio1981 avatar Apr 23 '18 12:04 claudio1981

This seems identical to the issue we fixed in May, where starting a container with Windows Authentication caused failures. Builds larger than 21966 should contain the fix.

jensmpmsft avatar Aug 06 '18 13:08 jensmpmsft