- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
HI all,
Please help me on
when trying to cancel SCTASK getting this error "submit canceled due to script error, contact system admin".
can't share screenshot, sorry.
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Assalamualaikum @NAYEEMURR ,
That error message usually points to a client-side script (UI Policy/Client Script) or server-side logic (Business Rule/Script Include) throwing an exception during form submission.
To Fix this can you follow this steps to debug:
- Check Client Scripts (onSubmit/onChange)
Inspect UI Policies
- Review Business Rules
- Script Includes / GlideAjax
- Use Developer Console
- Check ACLs
If you want to isolate the issue fast, clone the SCTASK form layout and remove all UI Policies + Client Scripts temporarily. making them Active = False If closing SCTASK works, reintroduce logic incrementally to pinpoint the one which is blocking closing task
You may find below thread helpful:
- https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0720671
- https://www.servicenow.com/community/itsm-forum/error-submit-canceled-due-to-a-script-error-please-c...
- https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0725857
If it is helpful, please hit the thumbs button please mark the answer as correct based on the impact!!
Kind Regards,
Shaik Mohammed Mustaq
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @NAYEEMURR ,
I think there is some error in your script, try to check logs or inspect > logs, maybe there is some error is showing.
Please mark my answer correct and helpful if this works for you
Thanks and Regards,
Sarthak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I don't see anything in error related to my issue. please help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Assalamualaikum @NAYEEMURR ,
That error message usually points to a client-side script (UI Policy/Client Script) or server-side logic (Business Rule/Script Include) throwing an exception during form submission.
To Fix this can you follow this steps to debug:
- Check Client Scripts (onSubmit/onChange)
Inspect UI Policies
- Review Business Rules
- Script Includes / GlideAjax
- Use Developer Console
- Check ACLs
If you want to isolate the issue fast, clone the SCTASK form layout and remove all UI Policies + Client Scripts temporarily. making them Active = False If closing SCTASK works, reintroduce logic incrementally to pinpoint the one which is blocking closing task
You may find below thread helpful:
- https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0720671
- https://www.servicenow.com/community/itsm-forum/error-submit-canceled-due-to-a-script-error-please-c...
- https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0725857
If it is helpful, please hit the thumbs button please mark the answer as correct based on the impact!!
Kind Regards,
Shaik Mohammed Mustaq