Developer forum

Forum » Integration » Error in scheduled task: Xml task creation failed in the file

Error in scheduled task: Xml task creation failed in the file

Anders Ebdrup
Anders Ebdrup
Reply

Dear Dynamicweb,

 

I can see in the log for the scheduled tasks that we have a lot of errors with: "Xml task creation failed in the file".

It seems to be a new "feature", but I dont think that this should be an error as it may is caused by Dynamicweb trying to create a scheduled task from xml that already exists?

 

Best regards, Anders
 


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Anders,
the error indicates that the Dynamicweb can not create the scheduled task from the xml file. Maybe your xml task xml configuration file contains some wrong data/tag value
that cannot be parsed when loading this configuration task xml. You can find the xml tasks in this folder:
/Files/Integration/ScheduledTasks
So you can either remove them or rename the folder or fix the task xml so it is loaded fine.
Kind regards, Dmitrij

 
Anders Ebdrup
Anders Ebdrup
Reply

Dear Dmitrij,

 

Thanks for the reply - we will try to remove the files.

But what is the logic? Will Dynamicweb always try to create a task if the xml-file is present in the given folder?

 

Best regards, Anders

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Anders,
yes, whenever the xml task file is present in the folder the Dynamicweb tries to load that task from the xml file in order to check if it is needed to be run
once the windows scheduler is triggering a new task run. And if it fails then there is a log file with a message about the error if any.
So there should be no errors in the tasks xml files.
BR, Dmitrij

 

You must be logged in to post in the forum