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.
Unable to update task record, and workflow is stuck on "Rollback to" activity - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Unable to update task record, and workflow is stuck on "Rollback to" activity
KB0830064

Unable to update task record, and workflow is stuck on "Rollback to" activity


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

Issue

  • unable to update task record
  • workflow is stuck on the "rollback to" activity


java.lang.StackOverflowError
at org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:2315)
at org.mozilla.javascript.ScriptableObject.getDefaultValue(ScriptableObject.java:959)
at org.mozilla.javascript.ScriptableObject.getDefaultValue(ScriptableObject.java:905)
at org.mozilla.javascript.ScriptRuntime.toString(ScriptRuntime.java:795)
at org.mozilla.javascript.NativeArray.toStringHelper(NativeArray.java:848)
at org.mozilla.javascript.NativeArray.execIdCall(NativeArray.java:270)
at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:102)
at org.mozilla.javascript.ScriptRuntime.doCall2(ScriptRuntime.java:2651)
at org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2590)
at org.mozilla.javascript.ScriptableObject.getDefaultValue(ScriptableObject.java:965)
at org.mozilla.javascript.ScriptableObject.getDefaultValue(ScriptableObject.java:905)
at org.mozilla.javascript.NativeArray.getDefaultValue(NativeArray.java:526)
at org.mozilla.javascript.ScriptRuntime.toBoolean(ScriptRuntime.java:369)
at org.mozilla.javascript.gen.sys_script_include_3d68dd633b130000dada82c09ccf3d28_script_267166._c_anonymous_59(sys_script_include.3d68dd633b130000dada82c09ccf3d28.script:1406)
at org.mozilla.javascript.gen.sys_script_include_3d68dd633b130000dada82c09ccf3d28_script_267166.call(sys_script_include.3d68dd633b130000dada82c09ccf3d28.script)
at org.mozilla.javascript.ScriptRuntime.doCall2(ScriptRuntime.java:2651)
at org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2590)
at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
at org.mozilla.javascript.gen.sys_script_include_3d68dd633b130000dada82c09ccf3d28_script_267166._c_anonymous_22(sys_script_include.3d68dd633b130000dada82c09ccf3d28.script:686)
at org.mozilla.javascript.gen.sys_script_include_3d68dd633b130000dada82c09ccf3d28_script_267166.call(sys_script_include.3d68dd633b130000dada82c09ccf3d28.script)
at org.mozilla.javascript.ScriptRuntime.doCall2(ScriptRuntime.java:2651)
at org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2590)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
at org.mozilla.javascript.gen.sys_script_include_3d68dd633b130000dada82c09ccf3d28_script_267166._c_anonymous_22(sys_script_include.3d68dd633b130000dada82c09ccf3d28.script:695)
at org.mozilla.javascript.gen.sys_script_include_3d68dd633b130000dada82c09ccf3d28_script_267166.call(sys_script_include.3d68dd633b130000dada82c09ccf3d28.script)
at org.mozilla.javascript.ScriptRuntime.doCall2(ScriptRuntime.java:2651)
at org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2590)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
at org.mozilla.javascript.gen.sys_script_include_3d68dd633b130000dada82c09ccf3d28_script_267166._c_anonymous_22(sys_script_include.3d68dd633b130000dada82c09ccf3d28.script:695)
at org.mozilla.javascript.gen.sys_script_include_3d68dd633b130000dada82c09ccf3d28_script_267166.call(sys_script_include.3d68dd633b130000dada82c09ccf3d28.script)
at org.mozilla.javascript.ScriptRuntime.doCall2(ScriptRuntime.java:2651)
at org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2590)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
at org.mozilla.javascript.gen.sys_script_include_3d68dd633b130000dada82c09ccf3d28_script_267166._c_anonymous_22(sys_script_include.3d68dd633b130000dada82c09ccf3d28.script:695)
at org.mozilla.javascript.gen.sys_script_include_3d68dd633b130000dada82c09ccf3d28_script_267166.call(sys_script_include.3d68dd633b130000dada82c09ccf3d28.script)
at org.mozilla.javascript.ScriptRuntime.doCall2(ScriptRuntime.java:2651)
at org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2590)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
at org.mozilla.javascript.gen.sys_script_include_3d68dd633b130000dada82c09ccf3d28_script_267166._c_anonymous_22(sys_script_include.3d68dd633b130000dada82c09ccf3d28.script:695)
at org.mozilla.javascript.gen.sys_script_include_3d68dd633b130000dada82c09ccf3d28_script_267166.call(sys_script_include.3d68dd633b130000dada82c09ccf3d28.script)
at org.mozilla.javascript.ScriptRuntime.doCall2(ScriptRuntime.java:2651)
at org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2590)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
at org.mozilla.javascript.gen.sys_script_include_3d68dd633b130000dada82c09ccf3d28_script_267166._c_anonymous_22(sys_script_include.3d68dd633b130000dada82c09ccf3d28.script:695)
at org.mozilla.javascript.gen.sys_script_include_3d68dd633b130000dada82c09ccf3d28_script_267166.call(sys_script_include.3d68dd633b130000dada82c09ccf3d28.script)

Cause

The root cause is the incorrect use of the "Rollback To" activity.

The "Rollback To" activity changes the history records of the activities and resets approvals and tasks that it's rolling back. But to do this it has to build large memory models of how the flow executed. If the activity is not resetting approvals and tasks, there really is no need to use 'Rollback To'. They can just remove the activity and just transition back to the point where they are doing their next thing. 

These flows are doing lots of loops and eventually the Rollback To Activity and the WorkflowModelManager can only handle so many iterations before they start to run into memory and stack issues in our javascript engine.

Resolution

  • remove the "rollback to" activity from the workflow if it is not rolling back approvals or tasks
  • for existing affected records, since it's affecting a few records, do either of the following which meets your requirements (test in sub prod):
    • manually update the records using setWorkflow(false) method
    • or remove the existing live workflow and relaunch the new workflow version without the "rollback to"
    • or manually cancel out the records and resubmit

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.