今天又是发布地图服务莫名报错的一天
打开一个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里的表;具体操作参考上一篇
解决之后就可以正常进行地图服务的发布了。
over~