Data loss in SyncGeodatabaseAsync

3308
3
05-20-2015 11:45 PM
TuukkaJärvinen
New Contributor III

Hello,

I'm trying to sync data back to ArcGIS server from my offline geodatabase and in one table new features have their foreign keys set to null during the sync.

I have an application where I have tables A, B, C, D and E. Tables D and E have geometries. There are globalid based relationships between A and B, B and C, C and D, D and E. When creating the replica, it uses layerqueries to take rows only to geodatabase table A.

The user then creates rows for tables B, C, D and E in offline mode, so all features in these tables are new.

When user has created all necessary data in offline, user tries to sync it back to the ArcGIS server. At this point, I can check the .geodatabase file and see that the data is fine and all relationships are working.

However, when the data is synced back to the ArcGIS Server, for some reason, all the foreign keys in the table D are set to null. I tested this various times and noticed that this only happens when user adds data to table E as well. If the user does not add any rows to table E, the foreign keys are saved correctly in the sync process.

In the attached screenshot, it is possible to see that the two rows are okay in the .geodatabase file but when synced and viewed from the online database, the foreign keys "MKIKUVIONTARKASTUS_GLOBALID" are set to null.

All other data in synced tables is synced correctly.

syncdatalose.png

Is there any explanation that could possibly cause this? Has anyone else experienced similar problems?

Regards,

Tuukka Järvinen

0 Kudos
3 Replies
MichaelBranscomb
Esri Frequent Contributor

Hi,

What versions of the software are you using?

- ArcGIS for Server

- ArcGIS Runtime SDK for .NET

Cheers

Mike

0 Kudos
MichaelBranscomb
Esri Frequent Contributor

Hi,

Please can you attach a self-contained reproducer app? In this case you will need to include the service definition (.sd file) as well.

Cheers

Mike

0 Kudos
TuukkaJärvinen
New Contributor III

Hi, I'm working on the reproducer app but I'm quite busy with other things at the moment so I will let you know when I'm able to finish it. I was mainly just interested in if somebody has experienced anything similar or if it was a known issue.

0 Kudos