Error Reference

Workflow context cancelled: execution was stopped

Workflow context cancelled: execution was stopped

Where this appears

This error appears in the Workflow Context record and System Log when a running workflow is terminated before completion. You'll see it in the workflow execution history, system logs at System Diagnostics > Log > Application Log, and in the workflow context's state field when checking workflow progress.

Sourdough
Chrome Extension

Debugging this in a real instance?

Sourdough lets you trace "Workflow context cancelled: execution was stopped" through system logs, script errors, and API health in the ServiceNow tab you are already using.

Add to Chrome

Free to install. Pro $5/month after a 14-day no-card trial.
Pro requires the ServiceNow admin role. Upgrade inside the extension.

Overview
Tasks
CMDB
API
Metrics
Monitor
Internals
Instance:sourdoughdev·Version:Yokohama
Instance StateONLINE
System StatusFully Operational
Session Timeout90 minutes
Logged-In Sessions2 (20 active)
Build Nameyokohama-12-18-2024_p1
IP Address10.159.128.43
Instance HealthHealth Score: 90%
🔥 5dSourdough (Chrome Plugin)Dark Mode

Cause

An administrator manually cancelled the workflow through the Workflow Context record or Workflow Editor (high likelihood)

A Cancel Activity was executed within the workflow, programmatically stopping the execution (high likelihood)

The parent record that triggered the workflow was deleted while the workflow was still running (medium likelihood)

A business rule or script cancelled the workflow using the cancel() method on the workflow context (medium likelihood)

System maintenance or instance restart interrupted workflow execution (low likelihood)

Fix

Step 1: Navigate to Workflow > Live Workflows and search for the cancelled workflow context to identify the specific workflow and record involved

Step 2: Check the workflow context record's 'Cancelled by' and 'Cancelled' fields to determine if it was manually cancelled by a user

Step 3: Review the workflow definition for Cancel Activities that might have triggered the cancellation based on business logic conditions

Step 4: Verify if the parent record still exists by checking the 'Table' and 'ID' fields in the workflow context record

Step 5: Examine System Log entries around the cancellation time using filter 'source contains workflow' to identify any system-level issues

Step 6: Check for any business rules or scripts that call workflow.cancel() method on the affected table

Step 7: If the cancellation was unintentional, restart the workflow manually from the workflow context record or trigger it again on the parent record

Step 8: Review workflow design to add appropriate error handling or conditional logic if the cancellation reveals workflow design issues

Test Your Knowledge

Quick 3-question quiz. See how your ServiceNow skills stack up.

Question 1 of 3Performance

A list view on a table with millions of records is slow. Best fix?

Select an answer to continue