<?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: Queries - numbers work, text doesn't in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/queries-numbers-work-text-doesn-t/m-p/613245#M30600</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm trying to create a query on the US Weather Warnings Service in ArcGIS Explorer Online to locate types of EVENTS (really, I'm just testing the query function).&amp;nbsp; So I click the Query Button, select the layer and construct my query:&lt;BR /&gt;EVENT = 'RED FLAG WARNING'&lt;BR /&gt;&lt;BR /&gt;Seems pretty simple, but I get an error - Unable to perform query.&amp;nbsp; Check the syntax and try again.&lt;BR /&gt;&lt;BR /&gt;I've tried single quotes, double quotes, no quotes.&amp;nbsp; And I've tried queries on different services.&amp;nbsp; If I query for a number I get results, but not if I query text.&amp;nbsp; Any ideas?&lt;BR /&gt;&lt;BR /&gt;Sue&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Since you said that numbers worked, you mean that numbers for the EVENT field worked?&amp;nbsp; If so, are you using domains or subtypes?&amp;nbsp; Maybe you need to call the coded value/number rather than the description?&amp;nbsp; Like if RED FLAG WARNING was coded as a number nine, then you'd type in EVENT = 9 or even EVENT = '9' ?&amp;nbsp; I realized afterwards that this is the ArcGIS Online section... Not sure if my response would help at all.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jun 2010 14:43:41 GMT</pubDate>
    <dc:creator>ArcGISUser</dc:creator>
    <dc:date>2010-06-23T14:43:41Z</dc:date>
    <item>
      <title>Queries - numbers work, text doesn't</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/queries-numbers-work-text-doesn-t/m-p/613244#M30599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to create a query on the US Weather Warnings Service in ArcGIS Explorer Online to locate types of EVENTS (really, I'm just testing the query function).&amp;nbsp; So I click the Query Button, select the layer and construct my query:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EVENT = 'RED FLAG WARNING'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Seems pretty simple, but I get an error - Unable to perform query.&amp;nbsp; Check the syntax and try again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried single quotes, double quotes, no quotes.&amp;nbsp; And I've tried queries on different services.&amp;nbsp; If I query for a number I get results, but not if I query text.&amp;nbsp; Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sue&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jun 2010 14:08:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/queries-numbers-work-text-doesn-t/m-p/613244#M30599</guid>
      <dc:creator>SueCarroll</dc:creator>
      <dc:date>2010-06-23T14:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Queries - numbers work, text doesn't</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/queries-numbers-work-text-doesn-t/m-p/613245#M30600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm trying to create a query on the US Weather Warnings Service in ArcGIS Explorer Online to locate types of EVENTS (really, I'm just testing the query function).&amp;nbsp; So I click the Query Button, select the layer and construct my query:&lt;BR /&gt;EVENT = 'RED FLAG WARNING'&lt;BR /&gt;&lt;BR /&gt;Seems pretty simple, but I get an error - Unable to perform query.&amp;nbsp; Check the syntax and try again.&lt;BR /&gt;&lt;BR /&gt;I've tried single quotes, double quotes, no quotes.&amp;nbsp; And I've tried queries on different services.&amp;nbsp; If I query for a number I get results, but not if I query text.&amp;nbsp; Any ideas?&lt;BR /&gt;&lt;BR /&gt;Sue&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Since you said that numbers worked, you mean that numbers for the EVENT field worked?&amp;nbsp; If so, are you using domains or subtypes?&amp;nbsp; Maybe you need to call the coded value/number rather than the description?&amp;nbsp; Like if RED FLAG WARNING was coded as a number nine, then you'd type in EVENT = 9 or even EVENT = '9' ?&amp;nbsp; I realized afterwards that this is the ArcGIS Online section... Not sure if my response would help at all.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jun 2010 14:43:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/queries-numbers-work-text-doesn-t/m-p/613245#M30600</guid>
      <dc:creator>ArcGISUser</dc:creator>
      <dc:date>2010-06-23T14:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Queries - numbers work, text doesn't</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/queries-numbers-work-text-doesn-t/m-p/613246#M30601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt; &lt;BR /&gt;Since you said that numbers worked, you mean that numbers for the EVENT field worked?&amp;nbsp; If so, are you using domains or subtypes?&amp;nbsp; Maybe you need to call the coded value/number rather than the description?&amp;nbsp; Like if RED FLAG WARNING was coded as a number nine, then you'd type in EVENT = 9 or even EVENT = '9' ?&amp;nbsp; I realized afterwards that this is the ArcGIS Online section... Not sure if my response would help at all.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried querying other fields that were numbers and got results, but when querying string fields I get the error message.&amp;nbsp; Since I'm querying Services, I wouldn't know if there was a coded domain or not.&amp;nbsp; I'm simply building the query based on the supplied sample information under the Data tab.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know if the Service has to be designed to ALLOW queries, like it has to be allowed for other functions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sue&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jun 2010 15:07:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/queries-numbers-work-text-doesn-t/m-p/613246#M30601</guid>
      <dc:creator>SueCarroll</dc:creator>
      <dc:date>2010-06-23T15:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Queries - numbers work, text doesn't</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/queries-numbers-work-text-doesn-t/m-p/613247#M30602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For some reason, queries based on string fields are failing for this service. According to the service description there are no coded value domains. Trying to run that query using the services directory (&lt;/SPAN&gt;&lt;A href="http://rmgsc.cr.usgs.gov/ArcGIS/rest/services/nhss_weat/MapServer/0/query"&gt;http://rmgsc.cr.usgs.gov/ArcGIS/rest/services/nhss_weat/MapServer/0/query&lt;/A&gt;&lt;SPAN&gt;) also fails.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In general, string queries work fine. For example, try the following service:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Daytime_Population/MapServer"&gt;http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Daytime_Population/MapServer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;with the fllowing query:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ST_ABBREV = 'ME'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jun 2010 10:55:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/queries-numbers-work-text-doesn-t/m-p/613247#M30602</guid>
      <dc:creator>AndyMacDonald</dc:creator>
      <dc:date>2010-06-24T10:55:15Z</dc:date>
    </item>
  </channel>
</rss>

