Failing Actions and Shell Scripts

Unfortunately KM does NOT provide any type of try/catch error handler, so you have to roll your own for each and every case.

For the Actions that are consistently failing, you can do this:

  • Change the option in the Action Gear menu to Uncheck the "Failure terminates macro":
    • image
  • Then after that Action, using KM IF/THEN action to check for the %ActionResult% value. If not "OK", then it failed, and you can add whatever actions you want to deal with the failure.

You may also find this macro helpful:

MACRO: Display Last KM Macro Error Ver 4 [Pub]

As @DanThomas suggested you can view the KM Engine log to find these macro failures. My above Macro provides an option to easily get/display the last N entries in the log.