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.
Why workflow version records should not be deleted - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Why workflow version records should not be deleted
KB0635645

Why workflow version records should not be deleted


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

Issue

Why workflow version records should not be deleted



Problem


On the ServiceNow Platform, the Workflow Editor within the Workflow module allows users to create new and update existing workflows for each application. An example reason that a workflow might be implemented is for Incident Management or Change Management.

Processes change over time, and therefore the platform uses versioning to update workflows without affecting existing running workflows within the platform. Workflow versions are stored in a table called wf_workflow_version.

However, in-flight records, such as Change Requests and Incidents, are using the older wf_workflow_version as a reference to run the workflow. The in-flight workflows are stored in a table called wf_context.

Deleting records within the wf_workflow_version table causes in-flight records, such as Change Requests and Incidents, to lose reference to their version. Therefore any approvals and tasks scheduled to be created by the in-flight workflow are not created, and therefore from an end-user point of view, the related record associated to the wf_context does not complete its execution.

Therefore do not delete wf_workflow_version records as this causes a huge impact to a ServiceNow instance.

 

Symptoms of workflow version deletion


The symptoms of a wf_workflow_version record being deleted are the following:

  • Empty value in the reference field Workflow Version on the wf_context table
  • Approvals and Tasks not being created on in-flight records

 

Cause


Due to the security enhancements in the platform, System Administrators cannot delete wf_workflow_version records if there is a reference that exists in the wf_context table, where the state of the wf_context is Executing.

However, the main cause of the deletion of wf_workflow_version records is when a user runs a background script to perform this action. 

Please note that ServiceNow Support does not advise nor support the use of a script to delete a wf_workflow_version.

 

Alternative solution


If you do not wish for a wf_workflow_version to be used for new records, set a wf_workflow_version inactive by performing the following steps:

  1. Navigate to Workflow > Workflow Editor
  2. Open any workflow. For example, Change Request - Normal
  3. On the title bar, click on the menu icon and select Set Inactive

Important: The Set Inactive option is only available if the version of the workflow is not referenced in an executing wf_context 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.