- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2025 10:45 PM
workflow not triggering scoped script with empty scratchpad after checking out WF, and same error after publishing WF, though previous run works. it looks like scoped script(non Global) IaCloneRollbackWf is not recognized by the WF, error message is not quite helpful, how to troubleshoot such case? any backend log available
Run script activity:
error message as below
org.mozilla.javascript.WrappedException: Wrapped TypeError: Cannot read property "script" from undefined (preflightCheck - advanced script; line 1) (<refname>; line 48)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2025 06:34 PM
NW, found cause with background script testing, script calls a global script without prefix, it'd be much easier if WF error msg is clearer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2025 10:47 PM
script IaCloneRollbackWf is defined under scope IA Clone, and it worked before checking out WF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2025 10:51 PM
sorry but you didn't share any screenshots etc and what are you trying to achieve here?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2025 12:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2025 12:19 AM
we don't know what that line does
did you check what it does?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader