Debugging Script Includes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2023 06:22 AM
I am trying to debug a script includes being called by an artifact configuration.
I have inserted a "gs.log" statement at the very beginning of the script includes.
I have inserted a second "gs.log" statement at the very beginning of the first function in the script includes.
The first log statement is running, but the second log statement is not.
What would cause a script includes to run but the first function NOT to run?
How do I troubleshoot such a situation?
Thanks for your assistance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2023 06:34 AM
Hi,
Post your code and folks here can review. Generally, there is some problem in the code and the use of in-valid methods.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2023 06:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2023 06:46 AM
how are you invoking it?
also use gs.info() and not gs.log()
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-24-2023 06:54 AM
There is a UI Action on the "sp_portal" table named "Request Translation". The UI action invokes the artifact configuration. The artifact configuration invokes the script includes. I changed the log statements to info statements. Nothing changed. I still see the first log statement, but not the second one.