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.
Workflow Approval Activity is not working properly/getting triggered - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Workflow Approval Activity is not working properly/getting triggered
KB0791031

Workflow Approval Activity is not working properly/getting triggered


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

Issue

  • For the request item, there's a workflow attached to it.
  • IF activity and APPROVAL activity won't work as it stuck at the approval activity.

Release

  • Madrid Patch 8.

Cause

  • There is a run script activity named 'Run Script' after the begin activity that has the code:
        current.u_request_title = current.variables.Require_Access;
  • Now in the Approval activity, we are querying using the same field 'u_request_title'

Resolution

  • There is a run script activity named 'Run Script' after the begin activity that has the code:
        current.u_request_title = current.variables.Require_Access;
  • Now in the Approval activity, we are querying using the same field 'u_request_title' :

    var mgrAppr = new GlideRecord('u_service_request_lookup');
    mgrAppr.addQuery('u_request_title', current.u_request_title);
    mgrAppr.query();
    if(mgrAppr.next()) {
    apprRequired = mgrAppr.u_manager_approval_required;
    }
    gs.log('Line Manager:- ' + current.u_request_title + ' isreq = ' + apprRequired);
  • For the RITM0080601, there is no variable named "Require_Access" and therefore the gliderecord query to the "u_service_request_lookup" table would have searched for 'u_request_title' IS EMPTY and it would not return any result and therefore the value for 'apprRequired' variable is 'False'.
  • We can confirm this by looking at the system log from the approval activity:
    Line Manager:- isreq = false
  • We can see that the 'current.u_request_title' is empty as the workflow tries to set the empty value.



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.