简体   繁体   English

功能的Arcgis服务器CreateReplica REST API不起作用

[英]Arcgis server CreateReplica REST API of feature not working

I created Feature class in enterprise geodatabase (SQLServer2014 express). 我在企业级地理数据库(SQLServer2014 Express)中创建了要素类。 Feature class is sync enabled and published successfully. 要素类已启用同步并成功发布。
Now I can not generate offline geodatabase from Arcgis Android SDk. 现在,我无法从Arcgis Android SDk生成离线地理数据库。
I can see ' Create Replica ' from ' Supported Operations ' from ' http://xyz:6080/arcgis/rest/services/MyFeature/FeatureServer ' 我可以从“ http:// xyz:6080 / arcgis / rest / services / MyFeature / FeatureServer ”中的“ 支持的操作 ”中看到“ 创建副本

I tried ' http://xyz:6080/arcgis/rest/services/MyFeature/FeatureServer/createReplica ' rest api from feature service. 我尝试了功能服务中的http:// xyz:6080 / arcgis / rest / services / MyFeature / FeatureServer / createReplica REST API。 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). 执行工具错误。:ErrorMsg @ SyncGPService:{“代码”:400,“描述”:“”}执行失败(创建功能服务副本)。

Log source is 'System/SyncTools.GPServer' 日志源是“ System / SyncTools.GPServer”

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? 让服务器摆脱困境,您可以针对数据源运行ArcMap / ArcGIS Pro中的“ 创建副本”工具,并且成功吗? If that works (and other operations like Adds, Updates, Deletes etc.), then put ArcGIS Server back in the equation. 如果可行(以及其他操作(如添加,更新,删除等),则将ArcGIS Server重新放回公式中。

What are your ArcGIS Server log levels set at? 您的ArcGIS Server日志级别设置为什么? 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. 您可能还需要检查并查看是否需要修补您的ArcGIS Server版本。 For example, at 10.5.1 there was a patch released specifically for Sync issues. 例如,在10.5.1版中有一个专门针对同步问题发布的补丁

If all else fails, Esri Support may be a good place to find some help as well. 如果其他所有方法均失败,则Esri支持可能也是寻求帮助的好地方。

Have you looked at the requirements for making your data available for offline use? 您是否查看了使数据可脱机使用的要求? See this link in the ArcGIS Server documentation. 请参阅ArcGIS Server文档中的此链接

Specifically you need to enable archiving and include Global IDs on the dataset, but there are more details at the above link. 具体来说,您需要启用存档并在数据集上包括全局ID,但是上面的链接中有更多详细信息。

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. 为了将来参考,并且在建议不起作用的情况下, Esri GeoNet ArcGIS Enterprise场所是一个提出这些问题的好地方。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM