Hi All,
I have created a task that simply read a CSV file and store it into a Dataset, then it calls a function and loops that Dataset (of course the function is in into the Task).
The task works but when I exported and imported in a different server (both shares the same O/S and the same Automate Version) I get the message "Variable <myVar> not found"
I have also tried to write a task straight into the destination server and I receive the same error, could you please check?
below you can find the specs and the task itself
O/S
Windows Server 2012 R2 Standard
Automate Version
Automate Premium 22.1.1.16
<?xml version="1.0" encoding="utf-8"?>
<AutoMateTask>
<TaskInfo>
<Version TaskVersion="22.1.0.64" MinVersion="0.0.0.0" AMLVersion="3.0" />
</TaskInfo>
<TaskFunctions>
<TaskFunction Name="Main" Access="private">
<Steps>
<AMFILESYSTEM ACTIVITY="csv_to_dataset" SOURCE="C:\test_loop.csv" RESULTDATASET="ds_test" ROWASHEADER="NO" DELIMITER="semi_colon" />
<AMTASK ACTIVITY="call_function" FUNCTIONNAME="func_1()" />
</Steps>
</TaskFunction>
<TaskFunction Name="OnStepStart" Access="private">
<Parameters>
<Parameter Name="FunctionName" />
<Parameter Name="StepNumber" />
</Parameters>
</TaskFunction>
<TaskFunction Name="OnStepEnd" Access="private">
<Parameters>
<Parameter Name="FunctionName" />
<Parameter Name="StepNumber" />
</Parameters>
</TaskFunction>
<TaskFunction Name="OnStepError" Access="private">
<Parameters>
<Parameter Name="FunctionName" />
<Parameter Name="StepNumber" />
<Parameter Name="ErrorText" />
<Parameter Name="ErrorCode" />
</Parameters>
</TaskFunction>
<TaskFunction Name="OnTaskFailure" Access="private">
<Parameters>
<Parameter Name="FunctionName" />
<Parameter Name="StepNumber" />
<Parameter Name="ErrorText" />
<Parameter Name="ErrorCode" />
</Parameters>
</TaskFunction>
<TaskFunction Name="OnTaskStart" Access="private">
<Parameters>
<Parameter Name="Reason" />
</Parameters>
</TaskFunction>
<TaskFunction Name="OnTaskEnd" Access="private">
<Parameters>
<Parameter Name="Reason" />
</Parameters>
</TaskFunction>
<TaskFunction Name="func_1">
<Steps>
<AMLOOP ACTIVITY="dataset" DATASET="ds_test" FROM="1" TO="5" />
<AMSHOWDIALOG><![CDATA[%ds_test.Column1%]]></AMSHOWDIALOG>
<AMLOOP ACTIVITY="end" />
</Steps>
</TaskFunction>
</TaskFunctions>
</AutoMateTask>