Hi Dojo,
I am using VS 2022 with DIS 3.1.4 to create a new automation script. In the script tag of the automation script xml file it does not show the code but a reference to the cs file:
<Script>
<Exe id="1" type="csharp">
<Value><![CDATA[[Project:Auto Route_1]]]></Value>
<!--<Param type="debug">true</Param>-->
<Message></Message>
</Exe>
</Script>
When I publish the automation script it shows not the code but the reference:
Of course I can not validate this, it shows me directly 3 errors, because this is not valid C# code. But can Dataminer find the cs file or is this wrong?
In the logs I get these errors, trying to run this script by an own crated scheduler task:
... CScriptLoader::LoadScriptFromXML|DBG|-1|(Script Auto Route) Execute ID 1 is used more than once
... CScriptLoader::LoadScriptFromXML|DBG|-1|Could not load script Auto Route
... CScriptLoader::StartScript|DBG|-1|The script could not be loaded (AUTO ROUTE)
Where can I set the ID? I only created a scheduler task and set that it should run this Auto Route script
Why could it not load the script?
Thanks for your help.
David
It looks like this question has already been answered with the comment above. To make it clear that this question no longer requires an answer, I have added this pro forma answer so that we can mark it as resolved.
I found the error, it was because I used the same ID ("1") for a scriptParameter and the exe element.