Select to view content in your preferred language

ERROR 000820: The parameters need repair

1715
1
10-02-2018 04:28 PM
LukeCatania__Developer_Acct_
New Contributor

I am getting this message when running a model published to server 10.4.1.  The model runs fine in desktop 10.4.1.  My published model also utilizes a script in which the statement:

arcpy.env.workspace = arcpy.GetParameterAsText(0)

is changed to

arcpy.env.workspace = arcpy.arcpy.env.packageWorkspace(0).

when the script is copied to the server directory:

C:\arcgisserver\directories\arcgissystem\arcgisinput\MOLOS3.GPServer\extracted\v101\scripts

Why the extra arcpy?

0 Kudos
1 Reply
MarisaClaggett
Frequent Contributor

Hi Luke,

This could possible be related to the following defect.

BUG-000105024: When a model is published as a geoprocessing service containing a script, and has a variable/parameter that is optional, the geoprocessing service fails to run.

Do you have any optional parameters in your model before publishing?  That is a caveat of the defect.

Best,

Marisa

0 Kudos