elueders

Featureservice replication fails to synchronize via REST

Discussion created by elueders on Jul 11, 2013
Hi,

I've set up a Featureservice on an ArcGIS Server 10.1. Now I create a replication via the REST-API with an Ajax-request from a webpage. Then I try to synchronise my changes. Everything works fine except the synchronization.
The REST-API gives me two error messages. 1. "Failed to synchronize.", 2. "Fehler beim Importieren von Datenänderungen in das Replikat." (in English: Error while importing the data changes into the replication)

My request data I send for the syncronization looks like this:
f=json&replicaID=C78AFEBF-20D3-4A89-9324-C3B2F99D0D4D&replicaServerGen=0&closeReplica=true&returnIdsForAdds=true&transportType=esriTransportTypeEmbedded&edits=[{"id":0,"features":{"adds":[{"geometry":{"x":"1067609.375152","y":"6867831.061082"},"attributes":{"globalID":"{04af819d-07a0-4425-a979-3df9ec488cbe}"}}]}}]

Header fields:
Content-Type: application/x-www-form-urlencoded
Accept: application/json


The logs in the server manager show me these errors:
SEVERE Jul 11, 2013 10:27:49 AM Failed to synchronize.
SEVERE Jul 11, 2013 10:27:49 AM Failed to synchronize Replica (REPLICATIONNAME).
SEVERE Jul 11, 2013 10:27:36 AM Failed to open: Objekte_102100__ATTACH in Feature Workspace.
SEVERE Jul 11, 2013 10:27:36 AM Failed to open: Schilder_102100__ATTACH in Feature Workspace.
SEVERE Jul 11, 2013 10:27:36 AM Failed to open: Baeume_102100__ATTACH in Feature Workspace.


But I do not even post any attachments with my request.
Now the really strange part is, that the request from above runs fine if fired from a REST-Console.
That's because I have no idea where to go from here to solve this error.
Maybe anyone got an idea?

Best regards
Eike

Outcomes