<?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: Error adding features to offline GDB  (!input_SR || !output_SR) in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-adding-features-to-offline-gdb-input-sr/m-p/203885#M1864</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Garima,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My apologies - I am using the&amp;nbsp;add method you referenced. And my baseman is in web mercator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not seeing a way to send that geodatabase&amp;nbsp;privately via geonet (maybe Im just missing it). Is there&amp;nbsp;an email address or other means to upload it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jul 2018 21:21:34 GMT</pubDate>
    <dc:creator>ChristopherMilack1</dc:creator>
    <dc:date>2018-07-09T21:21:34Z</dc:date>
    <item>
      <title>Error adding features to offline GDB  (!input_SR || !output_SR)</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-adding-features-to-offline-gdb-input-sr/m-p/203883#M1862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;I'm working with an offline geodatabase with version 100.3 of&amp;nbsp;the iOS SDK. &amp;nbsp;I have an AGSFeatureTable and used&amp;nbsp;create() to get a new feature. I&amp;nbsp;set the geometry on the new feature and then attempt to save. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="color: #ffffff; background-color: #1e2028; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;let&lt;/SPAN&gt; table &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;esriGeodatabase&lt;SPAN class="operator token"&gt;?&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;geodatabaseFeatureTable&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;withName&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; tableName&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;let&lt;/SPAN&gt; feature &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; table&lt;SPAN class="operator token"&gt;?&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;createFeature&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geometry &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; geometry
table&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;save&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;feature&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; completion&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;I get&amp;nbsp;the following error and stack trace (image attached):&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;EM&gt;Error Domain=com.esri.arcgis.runtime.error Code=2 "Invalid argument" UserInfo={&lt;STRONG&gt;NSLocalizedFailureReason=!input_SR || !output_SR&lt;/STRONG&gt;, NSLocalizedDescription=Invalid argument, Additional Message=!input_SR || !output_SR}&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;Note: Same as the error here:&amp;nbsp;&lt;A href="https://community.esri.com/thread/203786" target="_blank"&gt;Error updating Feature: Invalid Argument: !input_SR || !output_SR&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;I've verified the following:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;The AGSFeatureTable&amp;nbsp;spatial reference is set to 102100&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;The&amp;nbsp;spatial reference of the new feature's geometry is 102100&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;The&amp;nbsp;geometry is&amp;nbsp;not nil and was created with an AGSSketchEditor&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;The error message and stack trace lead me to believe that a&amp;nbsp;reprojection&amp;nbsp;is occurring&amp;nbsp;but I can't understand why, since the table SR&amp;nbsp;matches the geometry SR. Regardless, I can't see why this would&amp;nbsp;fail since the spatial reference is set on both the feature table and the new feature.&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Any&amp;nbsp;help on this would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:07:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-adding-features-to-offline-gdb-input-sr/m-p/203883#M1862</guid>
      <dc:creator>ChristopherMilack1</dc:creator>
      <dc:date>2021-12-11T10:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error adding features to offline GDB  (!input_SR || !output_SR)</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-adding-features-to-offline-gdb-input-sr/m-p/203884#M1863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/83026"&gt;Christopher Milack&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you adding a new feature to the feature table using &lt;A href="https://developers.arcgis.com/ios/latest/api-reference/group__licensing.html#ga3c0831400c4227aa9bb61731c8dc0a18"&gt;add(_:completion:)&amp;nbsp;&lt;/A&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;method? I am asking because we do not have a method called save(_:completion:) on&amp;nbsp;&lt;/SPAN&gt;AGSGeodatabaseFeatureTable or AGSFeatureTable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;Since you are using sketch editor to create a geometry and the geometry's spatial reference is 102100, I&amp;nbsp;assume your basemap is in web mercator spatial reference. Is it so?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;The error you are seeing seems to be data specific.&amp;nbsp;Is it possible for you to send me your&amp;nbsp;geodatabase file so I can test with it? You can send the file in my inbox.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;Garima&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 21:09:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-adding-features-to-offline-gdb-input-sr/m-p/203884#M1863</guid>
      <dc:creator>GarimaDhakal</dc:creator>
      <dc:date>2018-07-09T21:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error adding features to offline GDB  (!input_SR || !output_SR)</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-adding-features-to-offline-gdb-input-sr/m-p/203885#M1864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Garima,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My apologies - I am using the&amp;nbsp;add method you referenced. And my baseman is in web mercator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not seeing a way to send that geodatabase&amp;nbsp;privately via geonet (maybe Im just missing it). Is there&amp;nbsp;an email address or other means to upload it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 21:21:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-adding-features-to-offline-gdb-input-sr/m-p/203885#M1864</guid>
      <dc:creator>ChristopherMilack1</dc:creator>
      <dc:date>2018-07-09T21:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error adding features to offline GDB  (!input_SR || !output_SR)</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-adding-features-to-offline-gdb-input-sr/m-p/203886#M1865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Thank you, Christopher. I am able to reproduce the issue with your data and&amp;nbsp;I have submitted the bug for us to investigate the issue further and fix it in future release of the SDK.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 20:25:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-adding-features-to-offline-gdb-input-sr/m-p/203886#M1865</guid>
      <dc:creator>GarimaDhakal</dc:creator>
      <dc:date>2018-07-10T20:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error adding features to offline GDB  (!input_SR || !output_SR)</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-adding-features-to-offline-gdb-input-sr/m-p/203887#M1866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to provide additional information regarding this issue with a workaround.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The geodatabase is generated from sync enabled feature service using `generateJob(with:downloadFileURL:)` method on&amp;nbsp;&lt;SPAN&gt;AGSGeodatabaseSyncTask.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;The AGSGenerateGeodatabaseParameters has a property called `layerOptions` that takes a list of AGSGenerateLayerOption, which can be created&amp;nbsp;with layerID using the initializer `init(layerID:)`.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bug is reproducible if the first element of layerOptions parameter contains an instance of AGSGenerateLayerOption created from non-spatial layer's ID. This bug is under investigation to fix in future release of the SDK. In the meantime, the workaround is to create layerOptions such that it contains spatial records followed by non-spatial records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/83026"&gt;Christopher Milack&lt;/A&gt; for bringing this issue to our attention.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Garima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 19:27:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-adding-features-to-offline-gdb-input-sr/m-p/203887#M1866</guid>
      <dc:creator>GarimaDhakal</dc:creator>
      <dc:date>2018-07-18T19:27:43Z</dc:date>
    </item>
  </channel>
</rss>

