Geoprocessing Service - Field Parameter Not Supported

646
3
06-19-2020 10:44 AM
LanceKirby2
Occasional Contributor II

I see in the ArcGIS Pro documentation here: Input and output parameters for geoprocessing services—ArcGIS Pro | Documentation that the field parameter should be supported. I am running ArcGIS Pro 2.5 and ArcGIS Enterprise 1.7 so I should meet all requirements; however, after publishing the GP service I receive the message below when setting up the service within the Geoprocessing widget. Any ideas?

0 Kudos
3 Replies
DavidPike
MVP Frequent Contributor

Can you show your tool parameters before publishing?

0 Kudos
LanceKirby2
Occasional Contributor II

Sure.

In my script I am using GetParameterAsText

    featureLayer = arcpy.GetParameterAsText(0)
    fieldName = arcpy.GetParameterAsText(1
    outPutName = arcpy.GetParameterAsText(2
0 Kudos
DavidPike
MVP Frequent Contributor

Hmmm, perhaps set the first 2 parameters as arcpy.GetParameter(0) and  (1).

I'd take a stab at the dependency not being set as no object is input, however this is just a hypothesis.

0 Kudos