I have a python gp script (all v9.3.1) that runs fine if I run it 'standalone' in the python shell, but when I run it from a GP service in AGS, it immediately throws an error "ERROR 000735: OutZipFile: Value is required". None of the logging nor gp.AddMessage's that I have in the script are being recorded, so it's failing at the get-go.I copied the Portland Clip and Ship example from the 'GP service examples' in ArcTutor as closely as possible (albeit v10) in terms of the way my GP service parameters are set up and how the associated variables are handled in the script, so I wouldn't expect this to fail. But obviously I'm missing something.Some background...python script:
queryExpr = "APINumber in (" + gp.GetParameterAsText(0) + ")"
emailAddr = gp.GetParameterAsText(1)
metadata = gp.GetParameterAsText(2)
outputShapeName = gp.GetParameterAsText(3)
outZipFile = arcpy.GetParameterAsText(4)
if outZipFile == '#' or not outZipFile:
outZipFile = outZipDir + "/" + outputShapeName.replace(".shp",".zip")
GP Service parameters:
Parameter: ApiNumbers
Data Type: GPString
Display Name: ApiNumbers
Direction: esriGPParameterDirectionInput
Default Value:
Parameter Type: esriGPParameterTypeRequired
Category:
Parameter: Email
Data Type: GPString
Display Name: Email
Direction: esriGPParameterDirectionInput
Default Value:
Parameter Type: esriGPParameterTypeRequired
Category:
Parameter: ProdSummary
Data Type: GPString
Display Name: ProdSummary
Direction: esriGPParameterDirectionInput
Default Value:
Parameter Type: esriGPParameterTypeRequired
Category:
Parameter: InFileName
Data Type: GPString
Display Name: InFileName
Direction: esriGPParameterDirectionInput
Default Value:
Parameter Type: esriGPParameterTypeRequired
Category:
Parameter: OutZipFile
Data Type: GPDataFile
Display Name: OutZipFile
Direction: esriGPParameterDirectionOutput
Parameter Type: esriGPParameterTypeRequired
Category: