<?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: AGSFeatureTable fieldForName returns error if not found in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsfeaturetable-fieldforname-returns-error-if-not/m-p/622571#M5524</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can safely ignore the exception. It&amp;nbsp;doesn't propagate up out of the Runtime, it's merely logged to the console (I suspect we should hide that logging&amp;nbsp;- I'll raise this with the team).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result you get back from the &lt;STRONG&gt;fieldForName()&lt;/STRONG&gt; call is still &lt;STRONG&gt;nil&lt;/STRONG&gt;, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Xcode is stopping, you should remove any breakpoints on C++ exceptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jun 2020 16:34:50 GMT</pubDate>
    <dc:creator>Nicholas-Furness</dc:creator>
    <dc:date>2020-06-02T16:34:50Z</dc:date>
    <item>
      <title>AGSFeatureTable fieldForName returns error if not found</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsfeaturetable-fieldforname-returns-error-if-not/m-p/622570#M5523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct me if I'm wrong but the docs for AGSFeatureTable fieldForName indicate that the return value is a nullable AGSField, however if I request a field that does not exist it errors with the following:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #ffffff; background-color: #1f1f24; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;STRONG&gt;ArcGIS Runtime Error Occurred. Set a breakpoint on C++ exceptions to see the original callstack and context for this error:&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;Error Domain=com.esri.arcgis.runtime.error Code=3017 "The requested field was not found." UserInfo={NSLocalizedFailureReason=platform position is not a field name., NSLocalizedDescription=The requested field was not found., Additional Message=platform position is not a field name.}&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;C++ breakpoint doesn't return anything helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Docs here:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/ios/latest/api-reference/interface_a_g_s_feature_table.html#aedfcdfad159d622b4f4a5d4ab71270eb" title="https://developers.arcgis.com/ios/latest/api-reference/interface_a_g_s_feature_table.html#aedfcdfad159d622b4f4a5d4ab71270eb"&gt;ArcGIS Runtime SDK for iOS: AGSFeatureTable Class Reference&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shouldn't this return NULL if the field isn't found? &amp;nbsp;How should I determine if a given field name exists in an AGSFeatureTable without iterating through every field in AGSFeatureTable.fields?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2020 00:25:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsfeaturetable-fieldforname-returns-error-if-not/m-p/622570#M5523</guid>
      <dc:creator>MichaelDavis3</dc:creator>
      <dc:date>2020-06-02T00:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: AGSFeatureTable fieldForName returns error if not found</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsfeaturetable-fieldforname-returns-error-if-not/m-p/622571#M5524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can safely ignore the exception. It&amp;nbsp;doesn't propagate up out of the Runtime, it's merely logged to the console (I suspect we should hide that logging&amp;nbsp;- I'll raise this with the team).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result you get back from the &lt;STRONG&gt;fieldForName()&lt;/STRONG&gt; call is still &lt;STRONG&gt;nil&lt;/STRONG&gt;, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Xcode is stopping, you should remove any breakpoints on C++ exceptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2020 16:34:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsfeaturetable-fieldforname-returns-error-if-not/m-p/622571#M5524</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2020-06-02T16:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: AGSFeatureTable fieldForName returns error if not found</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsfeaturetable-fieldforname-returns-error-if-not/m-p/622572#M5525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah it's only a show stopper if the feature table isn't loaded... which turns out was the larger issue I needed to deal with. &amp;nbsp;I'm mid-way through upgrading a large and (to me anyway) complex app from 10.x to 100.x so the C++ breakpoints are helping me catch all the spots where I missed bits in the initial flurry of finding and replacing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2020 17:21:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsfeaturetable-fieldforname-returns-error-if-not/m-p/622572#M5525</guid>
      <dc:creator>MichaelDavis3</dc:creator>
      <dc:date>2020-06-02T17:21:10Z</dc:date>
    </item>
  </channel>
</rss>

