Variable: Difference in full path or variable
Posted: Fri Sep 29, 2023 9:06 am
Hey Oleg,
I've noticed something weird recently.
I have a task, triggered with File Monitor. Every day just 1 XML-file comes into a folder, task should start. That works. The filename which is found is saved into a variable XMLFILE, the content is correct, see screenshot. Later in the task, that variable is used to declare a variable XMLTEXT with the content of XMLFILE. However, when the task is executed, errors appear.
But, when I use the complete path of the file manually in XMLTEXT, the task continues without any error, despite the fact it should be theoretically the same, right? What do I miss?
I've noticed something weird recently.
I have a task, triggered with File Monitor. Every day just 1 XML-file comes into a folder, task should start. That works. The filename which is found is saved into a variable XMLFILE, the content is correct, see screenshot. Later in the task, that variable is used to declare a variable XMLTEXT with the content of XMLFILE. However, when the task is executed, errors appear.
But, when I use the complete path of the file manually in XMLTEXT, the task continues without any error, despite the fact it should be theoretically the same, right? What do I miss?