- 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-29-2025 01:10 AM
line number in error message is not helpful. the only line in activity is to call scoped script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2025 01:12 AM
Cannot read property "script" from undefined - means it treats IaCloneRollbackWf as undefined, but it's there and worked before
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2025 01:56 AM
so what's that? IaCloneRollbackWf
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 04:57 PM
IaCloneRollbackWf is script name
- 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