• "Variable <myVar> not found" - error looping Dataset in called function

    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>
  • Automation object could not be created

    Hi All,<br> I have a question regarding an issue I'm getting sometimes:<br> <br> I have several tasks that are scheduled to run approximately every 2-3 min apart (the time could be less but if so, they queue in order to run 1 single task at time)<br> <br> Every task opens a web browser and generically extract a table and put it on an excel file, then close the browser and that's it.<br> <br> After every task, or in case on task error, Automate runs a task to &quot;end&quot; all browser processes (I use Mozilla Firefox, so firefox.exe), excel.exe and wait until those processes stop running.<br> <br> The problem is that every now and then, a few tasks fail with the error message:<br> <strong>&quot;Automation object could not be created&quot;</strong><br> <br> I read that this may be caused due the fact that when the task tries to open the browser, it finds the previous browser session not properly ended.<br> <br> I am wondering if you know some procedure or a workaround to prevent this to happen.<br> <br> Thank you in advance for your help<br> <br> Gabriele<br> <br> 1.&#160;&#160; &#160;Automate Desktop 2022 v22.1.0.64<br> 2.&#160;&#160; &#160;Windows Server 2012 R2<br> 3.&#160;&#160; &#160;Automation object could not be created