Workflow execution error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2019 10:46 PM
Hi Team,
I have a workflow on sc_req_item and the workflow is getting stuck at a point and showing below error.
Error: Workflow 'COPY_QSS Prod' with context 0d66b620dbcdccd09ad39114ca9619eb terminated 2019-11-08 06:35:48 UTC with : Wrapped org.mozilla.javascript.EvaluatorException: missing ; before statement (Amend Finance(b6f1ea28db0dccd09ad39114ca96197d); line 1) (sys_script_include.d3669766c0a8016901828e92d1202ac5.script; line 264)
Please help to fix this issue.
- Labels:
-
Workflow

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2019 11:29 PM
Hi there,
Is it the Switch utility where you're workflow is stuck at? Or an other step? How do the conditions on the Switch look like. Are these all auto populated, or did you add these yourself / changed the conditions on these?
The error does mention sys_script_include.d3669766c0a8016901828e92d1202ac5. Did you have a look at this script include? Is this a custom script include? Called thru the workflow or thru a business rule triggered by an update by the workflow for example?
Looking at your workflow, might this script include be called thru the If utility before the Switch utility?
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2019 11:44 PM
Hi Jyotsna,
there is an error in your script include which is being called from the workflow activity
syntax error stating that missing semicolon at line number
open the script include function and check that line of code
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2019 11:52 PM
Hi Ankur,
Thanks for your reply!
Script include is the out of the box one and I haven't made any changes to it. I checked the script include and nothing is missing in it, below is the line
workflowScriptAPI.broadcastEventToCurrentsContexts(current, eventName, eventParms);
This error is coming only at one swith block in workflow, remaining workflow is all good.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2019 12:43 AM
Hi Jyotsna,
Can you share the switch block here?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader