Want to add a bit more context on this, and thx for those that have already replied.
The action is targeting multiple OS’s and the can happen even on end points where the action has run successful multiple times (in one instance is has run successful 40 times and then suddenly it returns error)
I’ve updated the action script to ensure when certain action/command needs to run those certain commands exists on the end point, same is true for populating parameter/settings using text file, validate first text file exists and has content in it, I’m using also the “|” option in case of failure, this has improved already the results but still it’s not yet completely bullet proof.
what is frustrating is that when the action returns “error” it’s not being retried which is different behaviour to action that failed. The retry mechanism is set to 3x with 15’ interval.
the action is rerun every hour on the device this for getting on-going info about the specific agents installed on the device.
with regards to comment about the relevance, the action script needs to run on every end point, I’ve got logic inside the action script to determine if certain part of the script needs to run or not, by using if-then-else clauses.
ex. if {(exists setting “_PG_AgentInstalled_Test” whose (value of it as string as lowercase = “y”) of client)}
the error that’s returned "Invalid action content: the action script contains a syntax error."
The same script runs fine on other machines with same config and OS, and also could have run fine on that same endpoint for multiple times before erroring out.
I’ve managed to find some issues by enabling “debug” logging and only deploy certain parts of the scripts, but as the errors are almost occurring randomly it’s very hard to determine where to enable debugging and for sure don’t’ want to enable this broadly
currently less then 1% of devices experiencing this issue, which in our environment still translates to about 1,000 devices globally which is a lot.
Will continue investigating and improving but any ideas/suggestions especially around error handling are much appreciated.
Thx.