laptop and a wrench

Bogue

Setting a parameter in a script tool but not using it in the script crashes the geoprocessing service.

Dernière publication: August 25, 2014 ArcGIS Server (.NET)
Numéro d’ID de bogue NIM088713
EnvoiFebruary 1, 2013
Dernière modificationApril 2, 2025
S’applique àArcGIS Server (.NET)
Version trouvée10.0
Système d’exploitationWindows OS
Version du système d’exploitation2008 R2
Version de correction10.1
StatutFixed

Informations supplémentaires

fixed in 10.1

Solution de contournement

Provide an if statement:Ex. # Import arcpy moduleimport arcpyInShape = r"<a href="file:C:/Project/data.shp" target="_blank">C:\Project\data.shp</a>"outFL = "Output_FeatureLayer"output = arcpy.GetParameter(0)if output == 1: arcpy.MakeFeatureLayer_management(InShape,outFL, "", "", "") arcpy.AddMessage("Valid features exist") arcpy.SetParameterAsText(1,outFL)else: arcpy.AddMessage("No valid output feature layer")

Étapes pour reproduire

ID de bogue: NIM088713

Logiciel:

  • ArcGIS Server (.NET)

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement