<?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: Cannot execute JS query.where statement - mime type error? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-execute-js-query-where-statement-mime-type/m-p/344494#M31794</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Molly,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;When woring with one field and multiple values you can optimize your query by using:&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;query&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;where &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"STATE_ABBR IN ('GA','IA','KY','MO')"&lt;/SPAN&gt;‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Why you are getting a Mime error, I can not say unless I see your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jul 2017 15:55:58 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2017-07-06T15:55:58Z</dc:date>
    <item>
      <title>Cannot execute JS query.where statement - mime type error?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-execute-js-query-where-statement-mime-type/m-p/344493#M31793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to update a web app we have and when I change the query.where statement to acquire more states, I get a mime type error in the development tool consoles of multiple browsers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the current query.where statement and it renders the map just fine:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;query.where = "STATE_ABBR = 'GA' OR STATE_ABBR = 'IA' OR STATE_ABBR = 'KY'"&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to add more states to the where statement like so:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;query.where = &lt;SPAN&gt;"STATE_ABBR = 'GA' OR STATE_ABBR = 'IA' OR STATE_ABBR = 'KY' OR STATE_ABBR = 'MO'"

&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Unforunately, when I change this in notepad ++, save the new html file, and refresh in the browser to the see the results, I get this error in the development tool console:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"Refused to execute script from &amp;lt;myURLhere&amp;gt;&amp;nbsp;because its MIME type (text/plain) is not executable, and strict MIME type checking is enabled."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm very unclear as to why the current map renders fine, but if I change the query it breaks. I don't know what MIME types are or how to fix such an issue. Insight would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:21:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-execute-js-query-where-statement-mime-type/m-p/344493#M31793</guid>
      <dc:creator>MKF62</dc:creator>
      <dc:date>2021-12-12T16:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot execute JS query.where statement - mime type error?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-execute-js-query-where-statement-mime-type/m-p/344494#M31794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Molly,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;When woring with one field and multiple values you can optimize your query by using:&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;query&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;where &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"STATE_ABBR IN ('GA','IA','KY','MO')"&lt;/SPAN&gt;‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Why you are getting a Mime error, I can not say unless I see your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 15:55:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-execute-js-query-where-statement-mime-type/m-p/344494#M31794</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-07-06T15:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot execute JS query.where statement - mime type error?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-execute-js-query-where-statement-mime-type/m-p/344495#M31795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I figured that out recently &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We also fixed the most recent issue concerning the mime error. It had to do with our editing software; needed to switch to Dreamweaver because for some reason it didn't appreciate that I was editing on my local file in Notepad++&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2017 11:31:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-execute-js-query-where-statement-mime-type/m-p/344495#M31795</guid>
      <dc:creator>MKF62</dc:creator>
      <dc:date>2017-07-07T11:31:58Z</dc:date>
    </item>
  </channel>
</rss>

