AnsweredAssumed Answered

How to manage GeodatabaseSyncTask errors in QT/QML 10.2.6

Question asked by tanerkoka on Apr 13, 2017
Latest reply on Apr 13, 2017 by LDanzinger-esristaff


We are using Arcgis Runtime SDK for Qt 10.2.6 and Qt 5.4.2 (MSVC 2013, 32 bit) Qt Creator 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 offline geodatabase and sync back to the service.We are using GeodatabaseSyncTask class's generateGeodatabase (GenerateGeodatabaseParameters parameters, string filename) method to generate geodatabase and then we sync editings with syncGeodatabase(SyncGeodatabaseParameters parameters, Geodatabase geodatabase) method.


We have a big editing mobile application sometimes occured synchronization errors we can not manage errors in if (syncStatus === Enums.SyncStatusErrored) control in  onSyncStatusChanged in GeodatabaseSyncTask.


When occured problem we can not understand why this error recived and what is Code=400 or Code=301 or which reason is Unable to import changes to server .How can we manage errors during the sync ?We can not tell the user what error was made .Can we learn more detail about errors from qml API. Her are below some errors :


D/MaksMobil( 4843): qrc:/qml/MapNumarataj.qml:453 (onSyncStatusChanged): qml: Error:   Code=400


D/MaksMobil( 4843): qrc:/qml/MapNumarataj.qml:453 (onSyncStatusChanged): qml: Error:Protocol "" is unknown Code=301 Protocol "" is unknown

D/MaksMobil( 4843): qrc:/qml/MapNumarataj.qml:453 (onSyncStatusChanged): qml: Error:Sync failed. Unable to import changes to server. Code=-1




Best Regards