<?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 to catch the Field name and syntax mismatch error. in ArcGIS Explorer Desktop Questions</title>
    <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/how-to-catch-the-field-name-and-syntax-mismatch/m-p/175110#M1109</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Search will return an empty collection if the search fails for any reason, so there is no exception thrown that you can catch here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you find an empty collection being returned, and you suspect a field name error, you can check the Columns of the FeatureLayers Table, maybe try the ColumnCollection.FindColumn method to see if the column exists (-1 will be returned if the column name doesnt exist.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There's no expression validator built in to the API I'm afraid, so that would be trickier to write. If there's still no records returned, it might either be a valid result (there's nothing matching that expression) or the expression might be incorrect - you can test the expression using the Query button in the app to see if that's the case.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Aug 2010 15:16:02 GMT</pubDate>
    <dc:creator>ShellyGill2</dc:creator>
    <dc:date>2010-08-31T15:16:02Z</dc:date>
    <item>
      <title>How to catch the Field name and syntax mismatch error.</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/how-to-catch-the-field-name-and-syntax-mismatch/m-p/175109#M1108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using ArcGIS explorer 1200 SDK, and I am trying to build a small tool to select feature attributes using query string.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am selecting the Features in a feature layer using the following syntax. And its working fine&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim FL As FeatureLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FL = ESRI.ArcGISExplorer.Application.Application.SelectedItems(0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim row As RowCollection&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Row = FL.Table.Search(New Filter("STATUS = 1"))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I use the field name as STATUS1 (the ???STATUS1??? field does not exist in the selected feature layer) then it is not showing any error. Only thing it is not selected any rows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wanted to catch this type of error. Can you please help me on this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or any other alternate method where I can catch this type of errors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pape Gowda&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Aug 2010 06:55:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/how-to-catch-the-field-name-and-syntax-mismatch/m-p/175109#M1108</guid>
      <dc:creator>papegowda</dc:creator>
      <dc:date>2010-08-28T06:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch the Field name and syntax mismatch error.</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/how-to-catch-the-field-name-and-syntax-mismatch/m-p/175110#M1109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Search will return an empty collection if the search fails for any reason, so there is no exception thrown that you can catch here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you find an empty collection being returned, and you suspect a field name error, you can check the Columns of the FeatureLayers Table, maybe try the ColumnCollection.FindColumn method to see if the column exists (-1 will be returned if the column name doesnt exist.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There's no expression validator built in to the API I'm afraid, so that would be trickier to write. If there's still no records returned, it might either be a valid result (there's nothing matching that expression) or the expression might be incorrect - you can test the expression using the Query button in the app to see if that's the case.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 15:16:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/how-to-catch-the-field-name-and-syntax-mismatch/m-p/175110#M1109</guid>
      <dc:creator>ShellyGill2</dc:creator>
      <dc:date>2010-08-31T15:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch the Field name and syntax mismatch error.</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/how-to-catch-the-field-name-and-syntax-mismatch/m-p/175111#M1110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks sgill,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;first i have used this method to verify the query, and it is difficult to verify the field names if query contains multiple field names. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;since it will not catch any syntax and field name errors, i have decided to convert the feature table to data table and it worked well for me. only constant my code runs slow while converting feature table to data table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pape gowda.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Sep 2010 02:16:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/how-to-catch-the-field-name-and-syntax-mismatch/m-p/175111#M1110</guid>
      <dc:creator>papegowda</dc:creator>
      <dc:date>2010-09-04T02:16:46Z</dc:date>
    </item>
  </channel>
</rss>

