<?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 Dashboard not loading with error, &amp;quot;totalQuery is undefined&amp;quot; in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-not-loading-with-error-quot-totalQuery-is-undefined/m-p/473997#M45819</link>
    <description>&lt;P&gt;Some of my dashboards are not loading after the 7.3.x upgrade - which were all Okay with the previous version was 7.2.6.&lt;BR /&gt;
The error messages are different from browsers but common thing is, the dashboards are not loading with the errors.&lt;BR /&gt;
Errors are, as below with invalid line numbers.&lt;/P&gt;

&lt;P&gt;totalQuery is undefined  or&lt;BR /&gt;&lt;BR /&gt;
undefined is not an object (evaluating 'totalQuery.replace') &lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2019 19:35:13 GMT</pubDate>
    <dc:creator>sylim_splunk</dc:creator>
    <dc:date>2019-10-31T19:35:13Z</dc:date>
    <item>
      <title>Dashboard not loading with error, "totalQuery is undefined"</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-not-loading-with-error-quot-totalQuery-is-undefined/m-p/473997#M45819</link>
      <description>&lt;P&gt;Some of my dashboards are not loading after the 7.3.x upgrade - which were all Okay with the previous version was 7.2.6.&lt;BR /&gt;
The error messages are different from browsers but common thing is, the dashboards are not loading with the errors.&lt;BR /&gt;
Errors are, as below with invalid line numbers.&lt;/P&gt;

&lt;P&gt;totalQuery is undefined  or&lt;BR /&gt;&lt;BR /&gt;
undefined is not an object (evaluating 'totalQuery.replace') &lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 19:35:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-not-loading-with-error-quot-totalQuery-is-undefined/m-p/473997#M45819</guid>
      <dc:creator>sylim_splunk</dc:creator>
      <dc:date>2019-10-31T19:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard not loading with error, "totalQuery is undefined"</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-not-loading-with-error-quot-totalQuery-is-undefined/m-p/473998#M45820</link>
      <description>&lt;P&gt;This is caused by some post-process searches, such as if a post-process search doesn't contain &amp;lt;query&amp;gt; element, then dashboard is not loading. This is due to JavaScript undefined error. And can be worked around by adding empty query element for the post-process searches without query. This is just a temp workaround and may not be needed once fixed (7.3.4+, 8.0.1+).&lt;/P&gt;

&lt;P&gt;for example, below is Okay&lt;BR /&gt;
&amp;lt;search base="callsA" id="myTable"&amp;gt;&lt;BR /&gt;
&amp;lt;query&amp;gt;&lt;BR /&gt;
| search  call_id="$token1$"&lt;BR /&gt;
 ...&amp;lt;SNIP&amp;gt;&lt;BR /&gt;
&amp;lt;/query&amp;gt;&lt;BR /&gt;
&amp;lt;/search&amp;gt; &lt;/P&gt;

&lt;P&gt;But if a post-process search doesn't have any query but only has some options, which will cause the error/symptoms (SPL-178012).&lt;BR /&gt;
&amp;lt;search base="callB" id="yourTable"&amp;gt;&amp;lt;/search&amp;gt;&lt;/P&gt;

&lt;P&gt;It can be worked around by adding empty query element as below.&lt;/P&gt;

&lt;P&gt;&amp;lt;search base="callB" id="yourTable"&amp;gt;&lt;BR /&gt;
&lt;STRONG&gt;&amp;lt;query&amp;gt;&amp;lt;/query&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;
&amp;lt;/search&amp;gt; &lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 19:43:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-not-loading-with-error-quot-totalQuery-is-undefined/m-p/473998#M45820</guid>
      <dc:creator>sylim_splunk</dc:creator>
      <dc:date>2019-10-31T19:43:34Z</dc:date>
    </item>
  </channel>
</rss>

