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 in NetSuite CPQ Manufacturing, you can identify and fix potential issues and eliminate the need for manual, repetitive actions like opening and saving sales orders. You can use the debugger tool to test both the standard work order creation process and work order creation using a script.

Based on the script type that can launch the work order creation process, four modes are available for testing and debugging:

After testing the work order creation process, make sure you remove the created work orders before continuing with further 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 for which you want to create work orders.

  5. Click Save.

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

  7. (Map/reduce script mode only) If you plan to run the testing task in map/reduce script mode, you can check the Force conversion box. This option reconverts 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 using the open icon next to the Order field.

    2. On the sales order, 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 script logs.

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

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

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

Related Topics

General Notices