Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Determining a workflow context table cleaner issue - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Determining a workflow context table cleaner issue
KB0538279

Determining a workflow context table cleaner issue


4459 Views Last updated : Sep 21, 2024 public Copy Permalink
KB Summary by Now Assist

Issue

This article helps to determine if an upgraded instance presents a workflow context table cleaner issue from legacy versions.

Symptoms

  • Workflow not found
  • Workflow restarted

Resolution

How the workflow engine executes against a current during a glide transaction

The workflow engine is a script engine that executes in a specific order. When the workflow engine executes against a current during a glide transaction, it follows these steps:

  • Checks for the existence of a workflow on that table.
  • If the engine finds a workflow, it checks for the existence of a wf_context.
  • If a wf_context is found and it is active, the engine executes the context.
  • If the engine does not find a wf_context, the engine creates and executes a wf_context.

If the table cleaner has removed a wf_context that is older than 180 days, and then a user examines an old current and clicks Update, a new workflow starts executing on that current.

For more information, see Execution Order of Scripts and Engines in the ServiceNow product documentation.

 

Workflows re-attached to old records

Some users have reported that workflows re-attach or re-start on old records. If a workflow context is deleted and the original current that was attached to that context is updated, then a new workflow attaches to that current. There are several ways a workflow context can be deleted. For example, a system administrator can delete a workflow context at any time.

In Calgary and earlier releases, there is an entry in the table cleaner that removes wf_context records older than 180 days. To remove this entry in record cleaner, follow these steps:

  1. In the navigation menu search box, type sys_auto_flush.list.
     
  2. Find the entry on the table, wf_context.
     
  3. Clear the Active option on the record.

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.