发布地图服务错误

在尝试发布ArcGIS地图服务时遇到错误:服务未能自动启动。错误信息提到没有图层或表格初始化。ESRI的解决方案指出,启用WFS时,带有连接(虚拟)属性的地图服务无法启用,可能由于图层具有多个ObjectID字段。解决方法包括创建新的特征类,删除或关闭重复的ObjectID字段。在执行时如果遇到'不能在选定的数据集中创建特征类,因为特征数据集被其他应用程序/用户使用'的问题,需要通过plsql登录sde用户清理table_locks表。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

今天又是发布地图服务莫名报错的一天

打开一个mxd文件,因为需要应用他的符号,所以去除掉其他的图层,只留下水土流失现状的图层,然后更换sde数据库当中的水土流失现状的图层数据,进行地图服务的发布,调整好各种参数并检查服务分析中不影响地图发布高低的警告或错误,发布服务后报错信息为:

The map was successfully published,however the service did not start automatically.
"error:service failed to start,
machine:supercpt[No layer or Table was intialized]"
please go to the servre connection and start the published service manually.

ESRI的支持给出的solution是:

【相关信息】

Windows,ArcGIS10.6.1,

【错误原因】

WFS cannot be enabled on map services with joined (virtual) attributes. If publishing from ArcMap, the Analyze function catches this error before it is published as a WFS. However, enabling WFS on an existing map service results in an error because of the limitation of using joins on a service with feature access.


This error is also generated when one of the map service layers has multiple ObjectID fields. This can occur when saving joined attributes, including the joined ObjectID, to a new feature class.

【解决方案】

Create a new feature class containing the joined attributes. If there are duplicate ObjectID fields, remove or turn off the field.

然鹅在执行的时候会遇到

【cannot create a feature classs in the selected dataset because the feature dataset is in use by another application/user】

这个问题,这个问题需要用plsql登下sde用户,然后清空table_locks里的表;具体操作参考上一篇

https://blog.csdn.net/qq_36379181/article/details/89211242

解决之后就可以正常进行地图服务的发布了。

over~

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值