How to manage GeodatabaseSyncTask errors in QT/QML 10.2.6

1397
1
04-13-2017 12:02 AM
tanerkoka1
Occasional Contributor

Hi,

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

 

0 Kudos
1 Reply
LucasDanzinger
Esri Frequent Contributor

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.

0 Kudos