-1

I created Feature class in enterprise geodatabase (SQLServer2014 express). Feature class is sync enabled and published successfully.
Now I can not generate offline geodatabase from Arcgis Android SDk.
I can see ' Create Replica ' from 'Supported Operations' from 'http://xyz:6080/arcgis/rest/services/MyFeature/FeatureServer'

I tried 'http://xyz:6080/arcgis/rest/services/MyFeature/FeatureServer/createReplica' rest api from feature service. it creates job but no results shown.
Server logs show following error

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

Log source is 'System/SyncTools.GPServer'

2 Answers2

1

First, make sure that there's nothing needed at the DB level where your data is stored. Taking the server out of the equation, can you run the Create Replica tool in ArcMap/ArcGIS Pro against the data source, and does it succeed? If that works (and other operations like Adds, Updates, Deletes etc.), then put ArcGIS Server back in the equation.

What are your ArcGIS Server log levels set at? It may be beneficial to up the logging level to Verbose or Debug, try to create the replica again, and consult the logs to see if more helpful information is returned.

You may also want to check and see if your version of ArcGIS Server needs to be patched. For example, at 10.5.1 there was a patch released specifically for Sync issues.

If all else fails, Esri Support may be a good place to find some help as well.

GIS Guy
  • 11
  • 1
0

Have you looked at the requirements for making your data available for offline use? See this link in the ArcGIS Server documentation.

Specifically you need to enable archiving and include Global IDs on the dataset, but there are more details at the above link.

For future reference, and in case that suggestion doesn't work, the Esri GeoNet ArcGIS Enterprise place is a good spot to ask these questions.

Nixta
  • 464
  • 2
  • 10
  • yes, I followed the requirements for making data offline available. So I am not facing issue in publishing service. My issue is when I request replica from published service. I am unable to post question in 'Esri GeoNet ArcGIS Enterprise' community. They have some issue in question editor – Jam Muhammad Younas Jan 29 '19 at 03:05