<?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 Editing geodatabase offline in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/editing-geodatabase-offline/m-p/1006230#M6859</link>
    <description>&lt;P&gt;Hi, we are use a old version of esri sdk, 10.2.5, we are trying to edit an offline geodatabase&lt;/P&gt;&lt;P&gt;our application uses a standard license level so a&lt;SPAN&gt;ll functionality are avaiable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;NSError *errore = nil;

[AGSRuntimeEnvironment setClientID:@"ourclientid" error:&amp;amp;errore];

    if (errore)    {

        NSLog(@"Errore registrazione licenza ArcGIS: %@", errore.localizedDescription);

    }
AGSLicenseResult  result = [[AGSRuntimeEnvironment license] setLicenseCode:@"ourlicense"];
 NSLog(@"result: %ld",(long)result); // result equals to AGSLicenseResultValid
 AGSLicenseLevel level = [AGSRuntimeEnvironment license].licenseLevel;
 NSLog(@"license level: %ld",(long)level); // level equals to 2 (AGSLicenseLevelStandard)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but when i try to edit the geodatabase , for example update a feature , the code is similar at&amp;nbsp; this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;NSError* err; 
BOOL success = [self.localFeatureTable saveFeature:feature error:&amp;amp;err]; 
if (success){ 
   NSLog(@"Success updating this feature : %ld", (long)r.objectId); 
} 
else { 
   NSLog(@"Fail. Investigate this error : %@", [error localizedDescription]); 
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we get the following error&lt;/P&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;Attempt to use functionality that is not supported for the current license level&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;what could be the problem?&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Dec 2020 17:16:21 GMT</pubDate>
    <dc:creator>robymun</dc:creator>
    <dc:date>2020-12-02T17:16:21Z</dc:date>
    <item>
      <title>Editing geodatabase offline</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/editing-geodatabase-offline/m-p/1006230#M6859</link>
      <description>&lt;P&gt;Hi, we are use a old version of esri sdk, 10.2.5, we are trying to edit an offline geodatabase&lt;/P&gt;&lt;P&gt;our application uses a standard license level so a&lt;SPAN&gt;ll functionality are avaiable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;NSError *errore = nil;

[AGSRuntimeEnvironment setClientID:@"ourclientid" error:&amp;amp;errore];

    if (errore)    {

        NSLog(@"Errore registrazione licenza ArcGIS: %@", errore.localizedDescription);

    }
AGSLicenseResult  result = [[AGSRuntimeEnvironment license] setLicenseCode:@"ourlicense"];
 NSLog(@"result: %ld",(long)result); // result equals to AGSLicenseResultValid
 AGSLicenseLevel level = [AGSRuntimeEnvironment license].licenseLevel;
 NSLog(@"license level: %ld",(long)level); // level equals to 2 (AGSLicenseLevelStandard)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but when i try to edit the geodatabase , for example update a feature , the code is similar at&amp;nbsp; this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;NSError* err; 
BOOL success = [self.localFeatureTable saveFeature:feature error:&amp;amp;err]; 
if (success){ 
   NSLog(@"Success updating this feature : %ld", (long)r.objectId); 
} 
else { 
   NSLog(@"Fail. Investigate this error : %@", [error localizedDescription]); 
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we get the following error&lt;/P&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;Attempt to use functionality that is not supported for the current license level&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;what could be the problem?&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 17:16:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/editing-geodatabase-offline/m-p/1006230#M6859</guid>
      <dc:creator>robymun</dc:creator>
      <dc:date>2020-12-02T17:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Editing geodatabase offline</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/editing-geodatabase-offline/m-p/1006317#M6860</link>
      <description>&lt;P&gt;That all looks OK. I don't think this will help, but can you read the &lt;A href="https://developers.arcgis.com/ios/10-2/api-reference/interface_a_g_s_license.html#ae05a42cffe90930c178ead5d57f41d2e" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;expiry&lt;/STRONG&gt;&lt;/A&gt; date once the license has been set? I know the enum indicates that it's still valid, but want to make sure there's agreement there.&lt;/P&gt;&lt;P&gt;In your second snippet, I noticed the error variable is&amp;nbsp;&lt;STRONG&gt;err&lt;/STRONG&gt; but that you then output [&lt;STRONG&gt;error&lt;/STRONG&gt; localizedDescription]. I'm guessing that's just a typo, but can you double-check that you're reading the right error message?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 20:11:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/editing-geodatabase-offline/m-p/1006317#M6860</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2020-12-02T20:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Editing geodatabase offline</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/editing-geodatabase-offline/m-p/1006544#M6861</link>
      <description>&lt;P&gt;hy Nicholas thanks for the quick response&lt;/P&gt;&lt;P&gt;i po the expiry date , and the result seems to be correct&lt;/P&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;po license.expiry&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p1"&gt;4001-01-01 00:00:00 +0000&lt;/P&gt;&lt;P class="p1"&gt;the err variable&amp;nbsp; in our code is correct, in the code I had posted there is a transcription error.&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;The problem could be due to the version of the arcgis server (where db is created) compared with the mobile version?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class="p1"&gt;Regards&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 08:52:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/editing-geodatabase-offline/m-p/1006544#M6861</guid>
      <dc:creator>robymun</dc:creator>
      <dc:date>2020-12-03T08:52:40Z</dc:date>
    </item>
  </channel>
</rss>

