Debugger Not Triggering for Workflow Action Script Called from a Suitelet.

Applies To

Product: NetSuite 2022.2

Scenario

The debugger is stuck at ‘waiting for user action’ when debugging a workflow action script that was called adhoc by another script.

Solution

As of 2020.2, it is currently not possible to debug workflow action script if it is triggered through nlapiInitiateWorkflow() as workflow action scripts that are triggered by another script will not be detected by the debugger.

So when debugging a workflow action script called from another script using nlapiInitiateWorkflow(), the debugger will be stuck at ‘waiting for user action.’ 

Ideally, test the workflow action script logic separately from the workflow using the debugger. After the logic is confirmed working, then test the workflow action script by triggering the workflow as per the workflow criteria.

Reference: https://suiteanswers.custhelp.com/app/answers/detail/a_id/89375/loc/en_US

Leave a comment

Your email address will not be published. Required fields are marked *