<?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 generating geodatabase, cryptic response in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-generating-geodatabase-cryptic-response/m-p/719518#M6422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Editing is not currently allowed for versioned data. So while publishing, make sure to unselect "Create", "Update", "Delete" options (Only "Query" &amp;amp; "Sync" should be). After the service is published, this can be verified by "Supported Operations" on the layer. It should not include "Add Features","Update Features","Delete Features","Apply Edits". Can you confirm what's in there? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Preparing_data_for_offline_use/0154000006m1000000/" rel="nofollow" target="_blank"&gt;section&lt;/A&gt;&lt;SPAN&gt; has more info on creating offline content for versioned and non-versioned data&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 May 2014 17:20:01 GMT</pubDate>
    <dc:creator>SuganyaBaskaran1</dc:creator>
    <dc:date>2014-05-06T17:20:01Z</dc:date>
    <item>
      <title>Error generating geodatabase, cryptic response</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-generating-geodatabase-cryptic-response/m-p/719515#M6419</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;I modified (simplified) the OfflineEditingSample to try and generate a geodatabase from one of our Feature Services. I'm just trying to generate the geodatabase file and download it. Once I have that working I can move on to more fun stuff. Here is the code (lifted from the sample):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AGSGDBGenerateParameters *params = [[AGSGDBGenerateParameters alloc] initWithFeatureServiceInfo:self.gdbTask.featureServiceInfo]; &amp;nbsp;&amp;nbsp;&amp;nbsp; params.extent = self.mapView.visibleAreaEnvelope; &amp;nbsp;&amp;nbsp;&amp;nbsp; params.outSpatialReference = self.mapView.spatialReference; &amp;nbsp;&amp;nbsp;&amp;nbsp; NSArray* layers = @[@(1)]; // Just getting one layer for testing &amp;nbsp;&amp;nbsp;&amp;nbsp; params.layerIDs = layers; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; [SVProgressHUD showWithStatus:@"Preparing to download"]; &amp;nbsp;&amp;nbsp;&amp;nbsp; [self.gdbTask generateGeodatabaseWithParameters:params downloadFolderPath:nil useExisting:YES status:^(AGSResumableTaskJobStatus status, NSDictionary *userInfo) { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //If we are fetching result, display download progress &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (status == AGSResumableTaskJobStatusFetchingResult) { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSNumber* totalBytesDownloaded = userInfo[@"AGSDownloadProgressTotalBytesDownloaded"]; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSNumber* totalBytesExpected = userInfo[@"AGSDownloadProgressTotalBytesExpected"]; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(totalBytesDownloaded != nil &amp;amp;&amp;amp; totalBytesExpected != nil){ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; double dPercentage = (double)([totalBytesDownloaded doubleValue]/[totalBytesExpected doubleValue]); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [SVProgressHUD showProgress:dPercentage status:@"Downloading features"]; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //don't want to log status for "fetching result" state because &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //status block gets called many times a second when downloading. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //we only log status for other states here &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog(@"Status: %@", AGSResumableTaskJobStatusAsString(status)); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &amp;nbsp;&amp;nbsp;&amp;nbsp; } completion:^(AGSGDBGeodatabase *geodatabase, NSError *error) { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (error) { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog(@"error generating geodatabase: %@", error); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [SVProgressHUD showErrorWithStatus:@"Error downloading features"]; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog(@"downloaded geodatabase: %@", geodatabase.path); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [SVProgressHUD showSuccessWithStatus:@"Finished downloading"]; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &amp;nbsp;&amp;nbsp;&amp;nbsp; }];&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Several status events are logged and eventually the completion block fires with an error. The NSLog output to the console looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Status: Waiting for default parameters Status: Pre-processing job Status: Starting job Status: Polling Status: Polling Status: Polling Status: Polling Status: Polling Status: Done error generating geodatabase: Error Domain=NSCocoaErrorDomain Code=400 "The operation couldn???t be completed. " UserInfo=0x14f4f860 {NSURL=http://xxxxxxxx:6080/arcgis/rest/services/ElectricDistribution/FeatureServer/jobs/j51fbc2858ae648d89478daa6bd27b32b?f=json, responseJSON={ &amp;nbsp;&amp;nbsp;&amp;nbsp; error =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; code = 400; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; description = ""; &amp;nbsp;&amp;nbsp;&amp;nbsp; }; &amp;nbsp;&amp;nbsp;&amp;nbsp; lastUpdatedTime = 1399335065000; &amp;nbsp;&amp;nbsp;&amp;nbsp; replicaName = "Ags_Fs"; &amp;nbsp;&amp;nbsp;&amp;nbsp; resultUrl = ""; &amp;nbsp;&amp;nbsp;&amp;nbsp; status = Failed; &amp;nbsp;&amp;nbsp;&amp;nbsp; submissionTime = 1399335050000; }, NSLocalizedFailureReason=}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: I replaced the location of the server in the error message with xxxxxxxx. It is hidden behind a firewall and access is occurring over a VPN.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone shed some light on the error message. It's not telling me much.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also note: here are the Sync Capabilities on the Feature Service:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Sync Capabilities: Supports Registering Existing Data: true Supports Sync Direction Control: true Supports PerLayer Sync: false Supports PerReplica Sync: true Supports RollbackOnFailure : false Supports Async: true&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;James&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2014 23:29:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-generating-geodatabase-cryptic-response/m-p/719515#M6419</guid>
      <dc:creator>JamesRichards1</dc:creator>
      <dc:date>2014-05-05T23:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error generating geodatabase, cryptic response</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-generating-geodatabase-cryptic-response/m-p/719516#M6420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you confirm the syncModel property of your AGSGDBGenerateParameters is perReplica? Also, is your data versioned?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 16:27:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-generating-geodatabase-cryptic-response/m-p/719516#M6420</guid>
      <dc:creator>SuganyaBaskaran1</dc:creator>
      <dc:date>2014-05-06T16:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error generating geodatabase, cryptic response</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-generating-geodatabase-cryptic-response/m-p/719517#M6421</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;Thanks for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At one point I added a line to explicitly set the syncModel property of the params to AGSGDBSyncModelPerGeodatabase:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;AGSGDBGenerateParameters *params = [[AGSGDBGenerateParameters alloc] initWithFeatureServiceInfo:self.gdbTask.featureServiceInfo];
params.syncModel = AGSGDBSyncModelPerGeodatabase;
...
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This didn't seem to make any difference so I removed that line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The data is versioned.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;James&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 06:47:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-generating-geodatabase-cryptic-response/m-p/719517#M6421</guid>
      <dc:creator>JamesRichards1</dc:creator>
      <dc:date>2021-12-12T06:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error generating geodatabase, cryptic response</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-generating-geodatabase-cryptic-response/m-p/719518#M6422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Editing is not currently allowed for versioned data. So while publishing, make sure to unselect "Create", "Update", "Delete" options (Only "Query" &amp;amp; "Sync" should be). After the service is published, this can be verified by "Supported Operations" on the layer. It should not include "Add Features","Update Features","Delete Features","Apply Edits". Can you confirm what's in there? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Preparing_data_for_offline_use/0154000006m1000000/" rel="nofollow" target="_blank"&gt;section&lt;/A&gt;&lt;SPAN&gt; has more info on creating offline content for versioned and non-versioned data&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 17:20:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-generating-geodatabase-cryptic-response/m-p/719518#M6422</guid>
      <dc:creator>SuganyaBaskaran1</dc:creator>
      <dc:date>2014-05-06T17:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error generating geodatabase, cryptic response</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-generating-geodatabase-cryptic-response/m-p/719519#M6423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Modifying the FeatureService to only allow Query and Sync solved the issue. Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;James&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 22:28:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-generating-geodatabase-cryptic-response/m-p/719519#M6423</guid>
      <dc:creator>JamesRichards1</dc:creator>
      <dc:date>2014-05-06T22:28:47Z</dc:date>
    </item>
  </channel>
</rss>

