<?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>topic Re: How do I fix this error: A custom JavaScript error caused an issue loading your dashboard? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-fix-this-error-A-custom-JavaScript-error-caused-an/m-p/618006#M50742</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/247944"&gt;@homieji16&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your XML looks good to me. I tried it and working fine.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard version="1.1" script="myCustomJS.js"&amp;gt;
  &amp;lt;label&amp;gt;Overview&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Controls Available&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults | eval control_number="control_number",control_label="control_label" | rename control_number as "Control Number" control_label AS "Brief Description"&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;40&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;row&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;link target="_blank"&amp;gt;$row.view$&amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-10-21 at 10.25.44 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/22113i86F1DB0738E45496/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2022-10-21 at 10.25.44 PM.png" alt="Screenshot 2022-10-21 at 10.25.44 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No errors in the console.&lt;/P&gt;&lt;P&gt;Is it possible to share JS file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;</description>
    <pubDate>Fri, 21 Oct 2022 16:56:25 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2022-10-21T16:56:25Z</dc:date>
    <item>
      <title>How do I fix this error: A custom JavaScript error caused an issue loading your dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-fix-this-error-A-custom-JavaScript-error-caused-an/m-p/617917#M50732</link>
      <description>&lt;P&gt;I have added the following to my dashboard and I am still getting this error (A custom JavaScript error caused an issue loading your dashboard). What should be my next steps?&lt;/P&gt;
&lt;P&gt;&amp;lt;dashboard version="1.1" script="myCustomJS.js"&amp;gt;&lt;/P&gt;
&lt;P&gt;or&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;form&amp;nbsp;version="1.1" script="myCustomJS.js"&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.1/Viz/DashboardjQuery" target="_blank" rel="noopener"&gt;Manage dashboards that need jQuery updates - Splunk Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 23:09:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-fix-this-error-A-custom-JavaScript-error-caused-an/m-p/617917#M50732</guid>
      <dc:creator>homieji16</dc:creator>
      <dc:date>2022-10-20T23:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I fix this error: A custom JavaScript error caused an issue loading your dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-fix-this-error-A-custom-JavaScript-error-caused-an/m-p/617932#M50735</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/247944"&gt;@homieji16&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to share your Sample XML and JS file?&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 03:23:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-fix-this-error-A-custom-JavaScript-error-caused-an/m-p/617932#M50735</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2022-10-21T03:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I fix this error: A custom JavaScript error caused an issue loading your dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-fix-this-error-A-custom-JavaScript-error-caused-an/m-p/617977#M50741</link>
      <description>&lt;P&gt;&amp;lt;dashboard version="1.1" script="myCustomJS.js"&amp;gt;&lt;BR /&gt;&amp;lt;label&amp;gt;Overview&amp;lt;/label&amp;gt;&lt;BR /&gt;&amp;lt;row&amp;gt;&lt;BR /&gt;&amp;lt;panel&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;Controls Available&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;table&amp;gt;&lt;BR /&gt;&amp;lt;search&amp;gt;&lt;BR /&gt;&amp;lt;query&amp;gt;| inputlookup cc_controls_lookup where splunk_use_case=true | fields control_number control_label view | sort view | rename control_number as "Control Number" control_label AS "Brief Description"&amp;lt;/query&amp;gt;&lt;BR /&gt;&amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127939"&gt;@kamlesh_vaghela&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;&lt;BR /&gt;&amp;lt;/search&amp;gt;&lt;BR /&gt;&amp;lt;option name="count"&amp;gt;40&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="drilldown"&amp;gt;row&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;drilldown&amp;gt;&lt;BR /&gt;&amp;lt;link target="_blank"&amp;gt;$row.view$&amp;lt;/link&amp;gt;&lt;BR /&gt;&amp;lt;/drilldown&amp;gt;&lt;BR /&gt;&amp;lt;/table&amp;gt;&lt;BR /&gt;&amp;lt;/panel&amp;gt;&lt;BR /&gt;&amp;lt;/row&amp;gt;&lt;BR /&gt;&amp;lt;/dashboard&amp;gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 12:50:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-fix-this-error-A-custom-JavaScript-error-caused-an/m-p/617977#M50741</guid>
      <dc:creator>homieji16</dc:creator>
      <dc:date>2022-10-21T12:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I fix this error: A custom JavaScript error caused an issue loading your dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-fix-this-error-A-custom-JavaScript-error-caused-an/m-p/618006#M50742</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/247944"&gt;@homieji16&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your XML looks good to me. I tried it and working fine.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard version="1.1" script="myCustomJS.js"&amp;gt;
  &amp;lt;label&amp;gt;Overview&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Controls Available&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults | eval control_number="control_number",control_label="control_label" | rename control_number as "Control Number" control_label AS "Brief Description"&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;40&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;row&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;link target="_blank"&amp;gt;$row.view$&amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-10-21 at 10.25.44 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/22113i86F1DB0738E45496/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2022-10-21 at 10.25.44 PM.png" alt="Screenshot 2022-10-21 at 10.25.44 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No errors in the console.&lt;/P&gt;&lt;P&gt;Is it possible to share JS file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 16:56:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-fix-this-error-A-custom-JavaScript-error-caused-an/m-p/618006#M50742</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2022-10-21T16:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I fix this error: A custom JavaScript error caused an issue loading your dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-fix-this-error-A-custom-JavaScript-error-caused-an/m-p/618013#M50743</link>
      <description>&lt;P&gt;This is an application with multiple dashboards to it.&amp;nbsp; How do I share the JS file?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 17:14:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-fix-this-error-A-custom-JavaScript-error-caused-an/m-p/618013#M50743</guid>
      <dc:creator>homieji16</dc:creator>
      <dc:date>2022-10-21T17:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I fix this error: A custom JavaScript error caused an issue loading your dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-fix-this-error-A-custom-JavaScript-error-caused-an/m-p/618014#M50744</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127939"&gt;@kamlesh_vaghela&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 17:15:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-fix-this-error-A-custom-JavaScript-error-caused-an/m-p/618014#M50744</guid>
      <dc:creator>homieji16</dc:creator>
      <dc:date>2022-10-21T17:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I fix this error: A custom JavaScript error caused an issue loading your dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-fix-this-error-A-custom-JavaScript-error-caused-an/m-p/618046#M50746</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/247944"&gt;@homieji16&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;QQ.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this dashboard open from another dashboard OR any dynamic query string values? Loading error happens when any dynamic tokens which are used in any search are not properly set which makes the search invalid for execution during the initial loading of the dashboard.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have the same scenario then try to debug those values with the actual practical use case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I faced a similar issue and resolved it by fixing such dynamic values. In my case, I'm opening dashboards from multiple dashboards by passing flags and IP addresses.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this will help you.&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;</description>
      <pubDate>Sat, 22 Oct 2022 06:03:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-fix-this-error-A-custom-JavaScript-error-caused-an/m-p/618046#M50746</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2022-10-22T06:03:56Z</dc:date>
    </item>
  </channel>
</rss>

