Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have a model that has one tool (Sort), works fine on desktop. When I try to publish get this error.

 Geoprocessing service initialization failed.
Invalid parameter: Tool - General Sort : Parameter - Field(s) : Data Type - Value Table

Turns out this data type is not supported, looking for a workaround that would allow users to choose more than one values for Sort field. Thanks, Jay

share|improve this question
1  
This may or may not be relevant but I think Sort tool needs ArcInfo/Advanced license which I think means you'll need ArcGIS Server Advanced to publish a model that uses it. Are you using ArcGIS Server Standard or Advanced? –  PolyGeo Nov 14 '12 at 4:01
    
I am using ArcGIS Server Advanced Enterprise, this issue is more related to support of Value table data type in Server, I am looking for a workaround for this limitation. Thanks –  Jay Nov 14 '12 at 16:49
add comment

2 Answers 2

There are some workarounds for using the Value Table data type with a Geoprocessing Service documented under Input modes and parameter data types (under the heading Value Tables). Unfortunately, Sort is not mentioned as one of them but the Intersect and Dissolve examples may give you some ideas.

share|improve this answer
add comment

It looks like you're just asking for a table of information through a GP task? If so then there are more efficient ways of doing it, like using the Query Method against the map service. If so then there's no need to sort in the Python. You do it on the web-service instead if you look here:

http://[host]/arcgis/rest/services/[folder]/[service]/MapServer/0/query

there is an "Order By Fields:" parameter, you put the field names here and your the response to your request will be sorted appropriately.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.