I have registered my layer as "Registered as versioned" with the "Register the selected objects with the option to move edits to base".

I can publish the the data the feature server with "Sync" features on.

Data can be used online, but when trying to "download the map" for "offline" use.

The application logs says :

Error Domain=NSCocoaErrorDomain Code=400 "Failed to create replica." UserInfo={NSURL=, responseJSON={
    error =     {
        code = 400;
        description = "Failed to create replica.";
    lastUpdatedTime = 1458648838000;
    replicaName = "";
    resultUrl = "";
    status = Failed;
    submissionTime = 1458648835000;
}, NSLocalizedFailureReason=Failed to create replica.}

And when checked "Arcgis server Manager" logs 2 error occurs :

Error 1

Error executing tool.: ErrorMsg@SyncGPService:{"code":400,"description":"Failed to create replica."} Failed to execute (Create Feature Service Replica).

Error 2

Error: An error occurred while adding an entry to the FEATUREDATASET_CLASSES or the FEATURECLASSES table. [Read only data or unversioned data cannot be replicated. Data versioned with the option to move edits to base cannot be replicated. GlobalIDs are required for two way and one way replica data. Creating one way replica using archiving requires archiving the replicated parent data.].

The achivement goal is :

Publish a feature server to use on mobile for online/offline editing with versioned data and all changes and updates shown on service immediately.

What i have already tried :

  • Read the prepare offline map and feature documentation and made sure that i had Global ID
  • When i do not use "Register the selected objects with the option to move edits to base" for data versioning option. Data is not displaying on the server when sync in offline mods even if i stop the service and tried to compress the data to DB.

Why we need versioning :

To be able to change and edit on Arcmap and webservices for multiple users.

Using : Arcgis 10.3

migrated from stackoverflow.com Mar 30 '16 at 12:16

This question came from our site for professional and enthusiast programmers.

  • 2
    +1 because I wish all questions included this much detail :) – MaryBeth Mar 30 '16 at 12:45
  • "immediately" is tough, but is it necessary? If you're offline then sync it back does an extra 5 minutes matter? we have our offline versions post every 5 minutes so any syncs are available in default version within 5 minutes. Online edits are instant (they don't need to be posted) – Midavalo Apr 1 '16 at 23:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.