sys_script_client does not seem to be executing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 06:40 PM
Hello, I have 3 client scripts (sys_script_client) with type as 'onLoad' for cmdb_ci-service_now table.
Out of these 3, 1 is not getting executed intermittently meaning sometimes it executes but sometimes it does not.
When I checked console (from Developer Tools in browser), it was evident that 1 client script was NOT getting executed.
Has anyone faced this earlier ? Please let me know in case if there is any resolution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 11:16 PM
Clear the browser cache is helping most of the times.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 08:37 PM
Thank you all for helpful comments/suggestions.
As there were hints related to 'order', I found that none of the sys_script_clients is given any order. Can that cause this issue ? Is it a standard practice to specify the 'order' to avoid such anomalies ?
I am inclined that this may be a problem with 'order' because my minimum expectation is 'onLoad sys_script_client' should at least be seen in console log of Developer Tools. "sys_script_client not working as expected because of any error" is a second part but at first I believe it should be executed onLoad of the page.
Also, there were few suggestions to add alert/log but unfortunately this issue is seen only in production so I am restricted from adding alert/log. Existing logs are also limited prohibiting root cause analysis.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 08:40 PM
You order is important to avoid anomalies. Please specify the order in the client scripts.
Kindly mark helpful/accepted if it helps you.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 11:17 PM
sure, let me try this.