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=http://52.28.226.146/arcgis/rest/services/yyy/yyyy/FeatureServer/jobs/j57ac7b5825c446e0a9e29de2faee7..., 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 :
Why we need versioning :
To be able to change and edit on Arcmap and webservices for multiple users.
Thanks in advance.
I've found the problem. If when you registered the data set as versioned and you checked the box to move edits to base that is the issue all you need to do is unregister it. Register it once again but do not check the box! here is the link for info: