<?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 How to manage GeodatabaseSyncTask errors in QT/QML 10.2.6 in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/how-to-manage-geodatabasesynctask-errors-in-qt-qml/m-p/737394#M3706</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt; We are using&amp;nbsp;Arcgis Runtime SDK for Qt 10.2.6 and Qt 5.4.2 (MSVC 2013, 32 bit) Qt Creator&amp;nbsp;QT\QML side .We are deploy with Android for armeabi-v7a (GCC 4.9, Qt 5.4.2) kit.We have local editing application which edits features within an&amp;nbsp;offline geodatabase and sync back to the service.We are using&amp;nbsp;GeodatabaseSyncTask class's generateGeodatabase (GenerateGeodatabaseParameters&amp;nbsp;parameters, string filename) method to generate geodatabase and then we sync editings with&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&lt;/SPAN&gt;syncGeodatabase(SyncGeodatabaseParameters parameters, Geodatabase geodatabase) method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a big editing mobile application sometimes occured &lt;SPAN style="background-color: #ffffff;"&gt;synchronization errors&amp;nbsp;&lt;STRONG&gt;we can not manage errors&lt;/STRONG&gt; in &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;(&lt;SPAN style="color: #000000;"&gt;syncStatus&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;===&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;Enums&lt;/SPAN&gt;.SyncStatusErrored)&amp;nbsp;control in &amp;nbsp;&lt;SPAN style="color: #800000;"&gt;onSyncStatusChanged &lt;SPAN style="background-color: #ffffff;"&gt;in&amp;nbsp;&lt;SPAN style="color: #3d3d3d;"&gt;GeodatabaseSyncTask.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;When&amp;nbsp;occured problem &lt;STRONG&gt;we can not understand why this error recived and what is Code=&lt;SPAN style="background-color: #ffffff;"&gt;&lt;STRONG&gt;400 or Code=301 or which reason is&amp;nbsp;Unable to import changes to server&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/STRONG&gt;.&lt;STRONG&gt;How can we manage errors during the sync ?We can not tell the user what error was made&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;.&lt;STRONG&gt;Can we learn more detail about errors from qml API&lt;/STRONG&gt;. Her are below some errors :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;D/MaksMobil( 4843): qrc:/qml/MapNumarataj.qml:453 (onSyncStatusChanged): qml:&lt;STRONG&gt;&amp;nbsp;Error: &amp;nbsp; Code=400&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;D/MaksMobil( 4843): qrc:/qml/MapNumarataj.qml:453 (onSyncStatusChanged): qml: &lt;STRONG&gt;Error:Protocol "" is unknown Code=301 Protocol "" is unknown&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;BR /&gt;D/MaksMobil( 4843): qrc:/qml/MapNumarataj.qml:453 (onSyncStatusChanged): qml:&lt;STRONG&gt; Error:Sync failed. Unable to import changes to server. Code=-1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Apr 2017 07:02:54 GMT</pubDate>
    <dc:creator>tanerkoka1</dc:creator>
    <dc:date>2017-04-13T07:02:54Z</dc:date>
    <item>
      <title>How to manage GeodatabaseSyncTask errors in QT/QML 10.2.6</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/how-to-manage-geodatabasesynctask-errors-in-qt-qml/m-p/737394#M3706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt; We are using&amp;nbsp;Arcgis Runtime SDK for Qt 10.2.6 and Qt 5.4.2 (MSVC 2013, 32 bit) Qt Creator&amp;nbsp;QT\QML side .We are deploy with Android for armeabi-v7a (GCC 4.9, Qt 5.4.2) kit.We have local editing application which edits features within an&amp;nbsp;offline geodatabase and sync back to the service.We are using&amp;nbsp;GeodatabaseSyncTask class's generateGeodatabase (GenerateGeodatabaseParameters&amp;nbsp;parameters, string filename) method to generate geodatabase and then we sync editings with&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&lt;/SPAN&gt;syncGeodatabase(SyncGeodatabaseParameters parameters, Geodatabase geodatabase) method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a big editing mobile application sometimes occured &lt;SPAN style="background-color: #ffffff;"&gt;synchronization errors&amp;nbsp;&lt;STRONG&gt;we can not manage errors&lt;/STRONG&gt; in &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;(&lt;SPAN style="color: #000000;"&gt;syncStatus&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;===&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;Enums&lt;/SPAN&gt;.SyncStatusErrored)&amp;nbsp;control in &amp;nbsp;&lt;SPAN style="color: #800000;"&gt;onSyncStatusChanged &lt;SPAN style="background-color: #ffffff;"&gt;in&amp;nbsp;&lt;SPAN style="color: #3d3d3d;"&gt;GeodatabaseSyncTask.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;When&amp;nbsp;occured problem &lt;STRONG&gt;we can not understand why this error recived and what is Code=&lt;SPAN style="background-color: #ffffff;"&gt;&lt;STRONG&gt;400 or Code=301 or which reason is&amp;nbsp;Unable to import changes to server&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/STRONG&gt;.&lt;STRONG&gt;How can we manage errors during the sync ?We can not tell the user what error was made&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;.&lt;STRONG&gt;Can we learn more detail about errors from qml API&lt;/STRONG&gt;. Her are below some errors :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;D/MaksMobil( 4843): qrc:/qml/MapNumarataj.qml:453 (onSyncStatusChanged): qml:&lt;STRONG&gt;&amp;nbsp;Error: &amp;nbsp; Code=400&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;D/MaksMobil( 4843): qrc:/qml/MapNumarataj.qml:453 (onSyncStatusChanged): qml: &lt;STRONG&gt;Error:Protocol "" is unknown Code=301 Protocol "" is unknown&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;BR /&gt;D/MaksMobil( 4843): qrc:/qml/MapNumarataj.qml:453 (onSyncStatusChanged): qml:&lt;STRONG&gt; Error:Sync failed. Unable to import changes to server. Code=-1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2017 07:02:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/how-to-manage-geodatabasesynctask-errors-in-qt-qml/m-p/737394#M3706</guid>
      <dc:creator>tanerkoka1</dc:creator>
      <dc:date>2017-04-13T07:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to manage GeodatabaseSyncTask errors in QT/QML 10.2.6</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/how-to-manage-geodatabasesynctask-errors-in-qt-qml/m-p/737395#M3707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These sound like they may be error messages being returned from the service. I would suggest you contact Esri support to assist you in debugging this if at all possible. They are well equipped to test if the error is happening on the client side or server side (either with ArcGIS Server or the database itself). Either way, a good place to start is to check the error logs in ArcGIS Server when these errors occur. Typically you can see a lot more information than what is sent back via http to the client.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2017 14:16:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/how-to-manage-geodatabasesynctask-errors-in-qt-qml/m-p/737395#M3707</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2017-04-13T14:16:37Z</dc:date>
    </item>
  </channel>
</rss>

