<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: sys_script_client does not seem to be executing in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/sys-script-client-does-not-seem-to-be-executing/m-p/2827626#M1083928</link>
    <description>&lt;P&gt;Hi &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/491499"&gt;@kedar_sirshikar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you try putting in alerts explicitly to validate if onload is working on not.&lt;/P&gt;
&lt;P&gt;If still it fails, validate the order has been put correctly, its active or not.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Feb 2024 02:50:18 GMT</pubDate>
    <dc:creator>Aman Kumar S</dc:creator>
    <dc:date>2024-02-15T02:50:18Z</dc:date>
    <item>
      <title>sys_script_client does not seem to be executing</title>
      <link>https://www.servicenow.com/community/developer-forum/sys-script-client-does-not-seem-to-be-executing/m-p/2827619#M1083925</link>
      <description>&lt;P&gt;Hello,&amp;nbsp; I have 3 client scripts (sys_script_client) with type as 'onLoad' for cmdb_ci-service_now table.&lt;/P&gt;
&lt;P&gt;Out of these 3, 1 is not getting executed intermittently meaning sometimes it executes but sometimes it does not.&lt;/P&gt;
&lt;P&gt;When I checked console (from Developer Tools in browser), it was evident that 1 client script was NOT getting executed.&lt;/P&gt;
&lt;P&gt;Has anyone faced this earlier ? Please let me know in case if there is any resolution.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 02:40:05 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/sys-script-client-does-not-seem-to-be-executing/m-p/2827619#M1083925</guid>
      <dc:creator>kedar_sirshikar</dc:creator>
      <dc:date>2024-02-15T02:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: sys_script_client does not seem to be executing</title>
      <link>https://www.servicenow.com/community/developer-forum/sys-script-client-does-not-seem-to-be-executing/m-p/2827626#M1083928</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/491499"&gt;@kedar_sirshikar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you try putting in alerts explicitly to validate if onload is working on not.&lt;/P&gt;
&lt;P&gt;If still it fails, validate the order has been put correctly, its active or not.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 02:50:18 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/sys-script-client-does-not-seem-to-be-executing/m-p/2827626#M1083928</guid>
      <dc:creator>Aman Kumar S</dc:creator>
      <dc:date>2024-02-15T02:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: sys_script_client does not seem to be executing</title>
      <link>https://www.servicenow.com/community/developer-forum/sys-script-client-does-not-seem-to-be-executing/m-p/2827627#M1083929</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/491499"&gt;@kedar_sirshikar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any specific reason to have 3 On-Load client scripts ? Mostly, a single On-Load script serves the purpose.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;
&lt;P&gt;Amit Verma&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 02:55:05 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/sys-script-client-does-not-seem-to-be-executing/m-p/2827627#M1083929</guid>
      <dc:creator>vermaamit16</dc:creator>
      <dc:date>2024-02-15T02:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: sys_script_client does not seem to be executing</title>
      <link>https://www.servicenow.com/community/developer-forum/sys-script-client-does-not-seem-to-be-executing/m-p/2827633#M1083931</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/491499"&gt;@kedar_sirshikar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Put the alert or addInfoMessage to see which is not executed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do your scripts run on cmdb_ci table, if yes then please tick &lt;STRONG&gt;Inherited&lt;/STRONG&gt; checkbox to apply to extended tables.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 03:08:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/sys-script-client-does-not-seem-to-be-executing/m-p/2827633#M1083931</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2024-02-15T03:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: sys_script_client does not seem to be executing</title>
      <link>https://www.servicenow.com/community/developer-forum/sys-script-client-does-not-seem-to-be-executing/m-p/2827638#M1083934</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/491499"&gt;@kedar_sirshikar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Few things to check:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. Confirm the execution order of your client scripts. In some cases, the order in which client scripts are executed might impact their behavior. Ensure that the desired script is not being overridden or skipped due to the execution order.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.&amp;nbsp;Review the logic in the client script that is not consistently executing. Ensure there are no conditions or errors that might cause it to skip execution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3.&amp;nbsp;Clear the browser cache and try again. Cached scripts might not be updated, leading to inconsistent behavior.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4.&amp;nbsp;If your client script relies on script includes, ensure that the script includes are being loaded correctly and are available at the time of execution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;5.&amp;nbsp;Review the ServiceNow instance logs for any errors or warnings related to client script execution. This can be found in the "System Logs" module.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Kindly mark helpful/accepted if it helps you.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 03:17:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/sys-script-client-does-not-seem-to-be-executing/m-p/2827638#M1083934</guid>
      <dc:creator>Maddysunil</dc:creator>
      <dc:date>2024-02-15T03:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: sys_script_client does not seem to be executing</title>
      <link>https://www.servicenow.com/community/developer-forum/sys-script-client-does-not-seem-to-be-executing/m-p/2827706#M1083960</link>
      <description>&lt;P&gt;Thank you all for helpful comments/suggestions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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 ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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&amp;nbsp;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 04:37:05 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/sys-script-client-does-not-seem-to-be-executing/m-p/2827706#M1083960</guid>
      <dc:creator>kedar_sirshikar</dc:creator>
      <dc:date>2024-02-15T04:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: sys_script_client does not seem to be executing</title>
      <link>https://www.servicenow.com/community/developer-forum/sys-script-client-does-not-seem-to-be-executing/m-p/2827714#M1083961</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/491499"&gt;@kedar_sirshikar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You order is important to avoid&amp;nbsp;&lt;SPAN&gt;anomalies. Please specify the order in the client scripts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Kindly mark helpful/accepted if it helps you.&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Thanks&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 04:40:59 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/sys-script-client-does-not-seem-to-be-executing/m-p/2827714#M1083961</guid>
      <dc:creator>Maddysunil</dc:creator>
      <dc:date>2024-02-15T04:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: sys_script_client does not seem to be executing</title>
      <link>https://www.servicenow.com/community/developer-forum/sys-script-client-does-not-seem-to-be-executing/m-p/2827901#M1084012</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Clear the browser cache is helping most of the times.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 07:16:30 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/sys-script-client-does-not-seem-to-be-executing/m-p/2827901#M1084012</guid>
      <dc:creator>kedar_sirshikar</dc:creator>
      <dc:date>2024-02-15T07:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: sys_script_client does not seem to be executing</title>
      <link>https://www.servicenow.com/community/developer-forum/sys-script-client-does-not-seem-to-be-executing/m-p/2827903#M1084013</link>
      <description>&lt;P&gt;sure, let me try this.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 07:17:11 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/sys-script-client-does-not-seem-to-be-executing/m-p/2827903#M1084013</guid>
      <dc:creator>kedar_sirshikar</dc:creator>
      <dc:date>2024-02-15T07:17:11Z</dc:date>
    </item>
  </channel>
</rss>

