Kaseya Community

lua.exe error on new procedure

This question is answered

This is the first procedure I have had to add since upgrading from 6.5 to 9.2.  The bulk of the procedure works fine until I put in the line to check if any user is logged on.  As soon as I add that the script fails with "FAILED to create IF step, Get Variable Error = Lua schedule failed (Line 1)"  Similarly just trying to pull the agent name into a variable produces the same error.

I can continue the current project by manually running the script only on logged in users but it is obviously preferable to design scripts more automated.

Any input is appreciated

Ken

Verified Answer
  • Hey  

    Can you provide us with the procedure or a screenshot the line the procedure is failing on?

    I have seen this occasionally when the variables are defined with #s, but that was the only condition I have seen this failure.

All Replies
  • Hey  

    Can you provide us with the procedure or a screenshot the line the procedure is failing on?

    I have seen this occasionally when the variables are defined with #s, but that was the only condition I have seen this failure.

  • Well, that figures; I re-add the If statement and it works now :-/