Extract tool missing layer
I have set up the Extract and Download tool using the Charlotte tool as an example, but creating my own geoprocessing service using the Extract tool from ArcToolbox.
The gp service has a Parameter: Layers_to_Clip, and within this is the following list of layers.
Choice List: [ Address Points, AdministrativeAreaBnd_2M, Parcel, Development Permit Area, Fringe Area, Site Specific Zoning Fill, Zoning fill, OCP Boundary Outline, OCP Designation Fill, Waste Disposal and Recycling, TNRD Water System, TNRD Sewer System, TNRD Fire Protection Service Bnd, Building Inspection ]
However, when I run this, for some reason the 'Zoning fill' layer is missing from the pick list that the user is presented with. I've created a log using the allLayers variable (see the Charlotte tool).
"Layers in gp service: " + allLayers(0) +", " + allLayers(1) +", " + allLayers(2) +", " + allLayers(3) +", " + allLayers(4) +", " + allLayers(5) +", " + allLayers(6) +", " + allLayers(7) +", " + allLayers(8) +", " + allLayers(9)+", " + allLayers(10) +", " + allLayers(11) +", " + allLayers(12) + ". All layers: " +cstr(allLayers.count) + ", feature layers: " + cstr(featureLayers.count) + ", group layers: " + cstr(groupLayers.count)
In the resultant log message it shows me:
Layers in gp service: Development Permit Area, Fringe Area, Site Specific Zoning Fill, OCP Boundary Outline, OCP Designation Fill, Waste Disposal and Recycling, TNRD Water System, TNRD Sewer System, TNRD Fire Protection Service Bnd, Building Inspection, Address Points, Parcel, AdministrativeAreaBnd_2M. All layers: 13, feature layers: 13, group layers: 0
Does anyone have any idea why it's completely ignoring the "Zoning fill" layer? It's just a regular feature layer, the same as the others.
Thanks
Mark
-
This may be completely silly, but from my experience the layer names between the GP and the REST Map Service have to be exactly the same. So if your GP Map Service 'Zoning Fill' layer has a typo, is spelled differently, etc. than your layer in your layer list, it won't include it in the pick list.
Did you capitalize the F in Fill in one, but not the other by chance? First thing I'd check is to make sure they are identical.
0 -
Erik
Yes, you're right. Geocortex is case-sensitive and I had a lower case 'f' in the 'Zoning Fill' layer in the geoprocessing service so it didn't match against the layer in the map service of the Essentials application. I've changed it to upper case, regenerated the gp service and it works now.
Thanks
Mark
0
Please sign in to leave a comment.
Comments
2 comments