ArcGIS Server 10.1 SP1连续查询出现Unable to complete operation错误
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ArcGIS Server 10.1 SP1连续查询出现Unable to complete operation错误相关的知识,希望对你有一定的参考价值。
1、分析原因
This is actually a known issue which is logged as the following bug:
[ NIM086349 - Alternate Query (Get) requests fail in Version 10.1 SP1 ]
2、解决办法
加入时间随机数:var random = (new Date()).getTime(),并将该随机数加入到查询中即可。代码如下:
//实例化查询任务类 var queryTask = new QueryTask(djConfig.xjExtentLayers + "/" + id); //建立查询过滤器 var query = new Query(); var random = (new Date()).getTime() query.where = "OBJECTID = " + item.objectid + " And " + random + "=" + random; query.outSpatialReference = { "wkid": 4326 }; query.returnGeometry = true; query.outFields = ["OBJECTID", "NAME"];
本文出自 “IT技术学习与交流” 博客,谢绝转载!
以上是关于ArcGIS Server 10.1 SP1连续查询出现Unable to complete operation错误的主要内容,如果未能解决你的问题,请参考以下文章
电脑上已经安装了arcGIS10.1 再安装ArcGis server10.1,提示机子上已经有arcgis10.1版本了,无法安装怎办
ArcGIS Server10.2安装完后ArcGIS Server服务启动不了是怎么回事