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.
Active flag is not set to false after RITM's workflow stage switches to Completed because the 'Set Active Flag' business rule condition does not run - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • Active flag is not set to false after RITM's workflow stage switches to Completed because the 'Set Active Flag' business rule condition does not run
KB0697348

Active flag is not set to false after RITM's workflow stage switches to Completed because the 'Set Active Flag' business rule condition does not run


6653 Views Last updated : May 3, 2025 public Copy Permalink
KB Summary by Now Assist

Description

When a workflow on a requested item only contains Set Value or Run Script activities, the requested item's active flag stays set as true even when the stage field is 'Complete'. This is due to the 'Set Active Flag' business rule condition failing to be met:

current.stage.changes() && (current.stage=="complete" || current.stage=="Request Cancelled")

The condition does not consider scenarios where a workflow on RITM has no Wait For, Timer, Approval, Catalog Task, Create Task activities. The history of the RITM shows that, when the record is created, the stage initial value is 'Complete', failing to match the business rule condition.

Steps to Reproduce

  1. Import the attached XML.
  2. Order the item 'Completed yet active still true'.
  3. Notice the RITM created still has active flag set to true instead of false.

Workaround

This issue has been fixed. If you are able to upgrade, review the Fixed In or Intended Fix Version fields to determine whether any versions have a planned or permanent fix.  After upgrading you will need to enable these business rules:

  1. sys_script_3c1faea173002300097f6508caf6a7b9.xml
  2. sys_script_8ebfaa6573002300097f6508caf6a7c3.xml

because by default they're active false.

If you are not planning to upgrade to a fixed release, perhaps you may find relief by applying this workaround:

Add the attached business rules which are configured to run after workflows:

  • Set Active Flag After Workflows - SetActiveFlagAfterWorkflows_sys_script_3c1faea173002300097f6508caf6a7b9.xml
  • Set Closure Fields After Workflows - SetClosureFieldsAfterWorkflows_sys_script_8ebfaa6573002300097f6508caf6a7c3.xml


Related Problem: PRB1269804

Potentially Seen In

There is no data to report.

Fixed In

Madrid

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?

Attachments

Attachments

  • SetActiveFlagAfterWorkflows_sys_script_3c1faea173002300097f6508caf6a7b9.xml
  • SetClosureFieldsAfterWorkflows_sys_script_8ebfaa6573002300097f6508caf6a7c3.xml
  • sys_remote_update_set_1fc794234f5d574025a39a211310c75a.xml

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.