GeodatabaseSyncTask does not create newest replica

259
1
03-19-2019 11:16 AM
LaurynasGedminas2
Occasional Contributor

I am using this example code:arcgis-runtime-samples-qt/GenerateGeodatabase.qml at master · Esri/arcgis-runtime-samples-qt · GitHu... 

and it does create the replica, but the data is 10-15 min old, and not the latest.

why would that happen?

Params are:

    // create the generate geodatabase parameters
    GenerateGeodatabaseParameters {
        id: generateParameters
        extent: app.centerExtent
        outSpatialReference: SpatialReference { wkid: 4326 }
        returnAttachments: true
        syncModel: "SyncModelGeodatabase"
        // only generate a geodatabase with 1 layer
        layerOptions: [
            GenerateLayerOption {
                layerId: featureLayerId
            }
        ]
    }
0 Kudos
1 Reply
LucasDanzinger
Esri Frequent Contributor

Hard to say. Do you use versioning with a rec/post operation that might be scheduled? Or perhaps you are editing in different extents than your replicas? As soon as you sync, edits should be applied unless either of those 2 scenarios are happening

0 Kudos