This error occurs when Pathmind is unable to execute your
doAction. Unfortunately, it is difficult to troubleshoot but it can most commonly happen whenever an agent or collection is null or empty at time 0.
1. Null agent at time 0
If you call an AnyLogic agent inside your
doAction, add a check to ensure the agent is not null. Otherwise, do nothing.
2. Empty collection at time 0
Similar to the above, if you call a collection inside your
doAction, add a check to ensure the collection has been populated. Otherwise, do nothing.
Finally, you may wonder why your simulation runs fine in AnyLogic but errors out in Pathmind. The reason is most likely related to the AnyLogic initialize sequence when executing inside AnyLogic versus outside AnyLogic (i.e. standalone).