<?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 Generate status doesn't always result in an error even when it has errored in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/generate-status-doesn-t-always-result-in-an-error/m-p/764485#M287</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;This question possibly has wider considerations, but in my particular case it relates to generating and syncing geodatabases.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;When I generate or synchronize a geodatabase with a feature service, occasionally something might go wrong and the request will fail. But an error code is not always raised.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;For example, I called &lt;SPAN style="color: #000000;"&gt;geodatabaseSyncTask.generateGeodatabase, and I could see the 'GenerateStatus' change to 1 (which means InProgress), but then it never changed from that. When I checked Fiddler logs, I saw a 400 response saying "description=Failed to parse geometry from input JSON". The Fiddler log error makes sense and I have no issue with that, but I would have expected the sync task generate status to change to 3 (error).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;But I do notice that the usual continuous polling for an update on the status of the job stops, so the sync task must somehow be aware that the job has an error??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;So , my question is twofold - is this a bug, in that it should be returning this as an error? And, is there any other way to catch these reponses?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;A similar thing happens when synchronizing, only certain errors actually create an error, meaning that from the application perspective there is no way to tell if the sync process is still under way.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jul 2016 03:14:08 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2016-07-18T03:14:08Z</dc:date>
    <item>
      <title>Generate status doesn't always result in an error even when it has errored</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/generate-status-doesn-t-always-result-in-an-error/m-p/764485#M287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;This question possibly has wider considerations, but in my particular case it relates to generating and syncing geodatabases.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;When I generate or synchronize a geodatabase with a feature service, occasionally something might go wrong and the request will fail. But an error code is not always raised.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;For example, I called &lt;SPAN style="color: #000000;"&gt;geodatabaseSyncTask.generateGeodatabase, and I could see the 'GenerateStatus' change to 1 (which means InProgress), but then it never changed from that. When I checked Fiddler logs, I saw a 400 response saying "description=Failed to parse geometry from input JSON". The Fiddler log error makes sense and I have no issue with that, but I would have expected the sync task generate status to change to 3 (error).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;But I do notice that the usual continuous polling for an update on the status of the job stops, so the sync task must somehow be aware that the job has an error??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;So , my question is twofold - is this a bug, in that it should be returning this as an error? And, is there any other way to catch these reponses?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;A similar thing happens when synchronizing, only certain errors actually create an error, meaning that from the application perspective there is no way to tell if the sync process is still under way.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 03:14:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/generate-status-doesn-t-always-result-in-an-error/m-p/764485#M287</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-07-18T03:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Generate status doesn't always result in an error even when it has errored</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/generate-status-doesn-t-always-result-in-an-error/m-p/764486#M288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to test this scenario. Could you please log a ticket with the Technical support?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Nakul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 20:31:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/generate-status-doesn-t-always-result-in-an-error/m-p/764486#M288</guid>
      <dc:creator>nakulmanocha</dc:creator>
      <dc:date>2016-07-18T20:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Generate status doesn't always result in an error even when it has errored</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/generate-status-doesn-t-always-result-in-an-error/m-p/764487#M289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have logged a call&lt;/P&gt;&lt;P&gt;Esri Case Number 01805501 -&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 22:22:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/generate-status-doesn-t-always-result-in-an-error/m-p/764487#M289</guid>
      <dc:creator>JohnPlunkett</dc:creator>
      <dc:date>2016-07-18T22:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Generate status doesn't always result in an error even when it has errored</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/generate-status-doesn-t-always-result-in-an-error/m-p/764488#M290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't been able to reproduce the issue. I tried the invalid extent approach to throw an error to simulate the workflow. But it does get reflected in the generatestatus code. I mean changes from 1 to 3. Where 3 implies error.&lt;IMG alt="Generategeodatabase.JPG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/213526_Generategeodatabase.JPG" style="width: 620px; height: 285px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Nakul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 00:18:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/generate-status-doesn-t-always-result-in-an-error/m-p/764488#M290</guid>
      <dc:creator>nakulmanocha</dc:creator>
      <dc:date>2016-07-28T00:18:29Z</dc:date>
    </item>
  </channel>
</rss>

