AnsweredAssumed Answered

SyncDirection Not Honored

Question asked by chaddevadmin on May 17, 2018
Latest reply on Jun 4, 2018 by akajanus-esristaff

I'm having an issue where the SyncDirection is not honored.  The code is pretty simple:

 

//Generate the sync task and parameters
var gdbSyncTask = await GeodatabaseSyncTask.CreateAsync(new Uri(syncUrl));
var syncParameters = await gdbSyncTask.CreateDefaultSyncGeodatabaseParametersAsync(gdb);
syncParameters.GeodatabaseSyncDirection = SyncDirection.Download;

 

Although I'm specifying to only do the download, features that have been collected in the offline geodatabase are still ending up on the server.  The same is true if edits are made on the server, and I run a sync with a SyncDirection of Upload, the changes on the server still come down to the device.

 

Anyone else seeing a similar issue?  Seems like regardless of the SyncDirection, it's always doing a BiDirectional sync.

 

I have a simple repro app is anyone from Esri is able to take a look.

 

Thanks! 

Outcomes