Cannot publish geoprocessing service

1834
3
10-28-2012 05:58 PM
XintaoLiu
Occasional Contributor II
I created a toolbox with some scripts and a model. The script runs well in ArcMap. When I try share the result as a service, two errors come up as follows:
1: Script Statistics contains broken project data source: SUBSET_SELECTION Model
2: Script Statistics contains broken project data source: NEW_SELECTION Model Tool Unknown

I do use the SUBSET_SELECTION and NEW_SELECTION. I am using ArcGIS 10.1.  What 's wrong with my script?
0 Kudos
3 Replies
ShingLin
Esri Contributor
It will be more helpful if you can attach your script and data to know what really goes on.
0 Kudos
XintaoLiu
Occasional Contributor II
It will be more helpful if you can attach your script and data to know what really goes on.


The codes are simple:
......
gp.SelectLayerByLocation(inLayer, "intersect", pAOI, "","","NEW_SELECTIOIN")
gp.SelectLayerByAttribute(inLayer, "SUBSET_SELECTION", whereClause)
......

The codes works in ArcMap, but when I publish it as a service, the above errors appear. Thanks.
0 Kudos
DaleHoneycutt
Occasional Contributor III
More information about your script is needed...  For example, are the variables "inLayer" and "pAOI" script parameters?  Please reply with the full script that you use in ArcMap.
0 Kudos