GPK Parameters for Python Script Tool

Discussion created by matthewb on Jul 31, 2012
Latest reply on Aug 1, 2012 by matthewb

I have a Python script tool with Feature Set input parameters that are converted to GPString when packaged as a GPK (this is what the REST API reports). The output feature layers are set to GPFeatureRecordSetLayer, and I would expect the inputs to be the same base on the docs and samples.

Also, if I look at the JSON version, there are choiceList and defaultValue parameters, which aren't configured in my script or in the tool. (But probably come from my execution of the tool in ArcMap.)

So when I execute the GPK from the Runtime, I get:

[INDENT]Error 000735: ...Value is required (repeated for each input)


[INDENT]Error 000800: The value is not a member of..... (values from the choiceList)

Are there extra steps required to prepare a Python script tool that I have missed?

Many thanks,