07

Troubleshooting Workflow Execution

Using Execution Logs, Purging History, and Managing Workflow Status

🎯 Learning Objectives

Upon completion of this module, you will be able to:

Active Workflows & Workflow History

When a workflow initiates on a record, NetSuite tracks all processing activity and logs it. This information appears in two sublists on the record:

Active Workflows Sublist

Workflow History Sublist

📋 Finding the Sublists

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 Workflow Execution Log

The execution log is your primary troubleshooting tool. It shows exactly what happened during workflow processing for each state.

What You Can Learn from the Log

⚠️ Enabling Logging

Workflow logging is NOT enabled by default! Check "Enable Logging" on the workflow definition page. The log is only available when:

  • User is logged in as Administrator
  • Release Status is Testing or Released
  • Enable Logging checkbox is checked

Understanding Skipped Actions

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.

⚠️ Common Skipped Action Scenario

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.

Reading the Log

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.

Suspending Workflow Execution

Set the workflow's Release Status to Suspended to completely halt execution:

✅ Resume Execution

Set Release Status back to Testing or Released to resume normal processing.

Purging Workflow History

Over time, workflow history records can become very large and impact performance. Purging removes old records.

Accessing the Purge Dialog

  1. Open the workflow in Workflow Manager
  2. Click More in the upper right corner
  3. Select Instances and History Records

Purge Options

💡 No Impact on Development

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).

Disabling Execution History

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

✅ Performance Tip

For high-volume transaction workflows, consider "Only When Testing" or "Never" to reduce database usage and improve performance.

🎯 Hands-On Exercises

Practice troubleshooting workflows:

Go to Module 7 Exercises →

🌟 Key Takeaways