Using Execution Logs, Purging History, and Managing Workflow Status
Upon completion of this module, you will be able to:
When a workflow initiates on a record, NetSuite tracks all processing activity and logs it. This information appears in two sublists on the record:
By default, Active Workflows and Workflow History appear under a System Information subtab. To group them under a "Workflow" subtab, modify the custom record and enable "Allow Attachments" or "Show Notes."
The execution log is your primary troubleshooting tool. It shows exactly what happened during workflow processing for each state.
Workflow logging is NOT enabled by default! Check "Enable Logging" on the workflow definition page. The log is only available when:
When an action's trigger doesn't match the active workflow trigger, it gets skipped—but no user-facing error appears! Only the execution log reveals this.
A Go to Record action configured on Before Record Submit won't execute because Before Record Submit isn't a valid trigger for that action. The log shows "Skipped" but no error displays to users.
The log shows NetSuite field IDs (not UI labels). Enable Show Internal IDs in User Preferences (Module 0 📚) to match field IDs to form fields. List/record field values show as internal IDs—open the referenced record to verify data.
Set the workflow's Release Status to Suspended to completely halt execution:
Set Release Status back to Testing or Released to resume normal processing.
Over time, workflow history records can become very large and impact performance. Purging removes old records.
Purging has no effect on currently processing workflows or future development. It also doesn't affect the Update History on the workflow definition page (History subtab).
The Keep Instance and History dropdown on the workflow definition controls whether execution history is saved:
| Option | Behavior |
|---|---|
| Always | Preserves all instances and history entries |
| Only When Testing | Preserves only when Release Status = Testing |
| Never | Deletes instances when workflow reaches end state; no new history saved |
For high-volume transaction workflows, consider "Only When Testing" or "Never" to reduce database usage and improve performance.
Practice troubleshooting workflows: