Workflow execution error.

jyotsna1
Giga Contributor

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.

7 REPLIES 7

Mark Roethof
Tera Patron
Tera Patron

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

LinkedIn

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

jyotsna1
Giga Contributor

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.

Hi Jyotsna,

Can you share the switch block here?

Regards

Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader