Testing and Debugging Work Orders for Configured Items

When setting up products, you can test and debug the work order creation process for configured items. With the debugger tool integrated into NetSuite CPQ Manufacturing, you can identify and fix any potential issues without manually opening and saving sales orders repeatedly. You can use the debugger tool to test:

Four different modes are available to interact with the SuiteScript module used to create work orders. These modes correspond to the script types that can launch the work order creation process:

After testing the work order creation process, make sure you remove the created work orders to continue with the testing.

To create a testing task to create work orders from a sales order:

  1. Go to CPQ > Manufacturing > Work Oder Creator.

  2. Click New CPQM WO Creator.

  3. Enter a name for the testing task.

  4. Select the sales order.

  5. Click Save.

  6. Click Edit to start testing the work order creation process.

  7. (Map/reduce mode only) If you plan to run the testing task in map/reduce mode, you can check the Force conversion box. This option converts up-to-date work orders.

  8. Depending on the testing mode you want to use, click one of the following buttons to start the testing task:

    • Client

    • Suitelet

    • Scheduled

    • Map/Reduce

  9. When the testing process has completed:

    1. Open the sales order from the testing task.

    2. View the Create WO line field.

      If the field contains a link with a number, the work order has been created.

  10. If you experience issues when creating work orders, verify the logs.

    To view script logs for server-side scripts, go to Customization > Scripting > Scripts. Open the script record and click the Execution Log subtab. To delete logs, click the Remove All button.

  11. After verifying the work orders and the logs, go back to the testing task and delete the created word orders by clicking the Remove WOs button.

    You can view logs about the deletion process in the console.

Related Topics

General Notices