| Numéro d’ID de bogue |
BUG-000146786 |
| Envoi | February 10, 2022 |
| Dernière modification | April 17, 2024 |
| S’applique à | ArcGIS API for Python |
| Version trouvée | 1.9.1 |
| Système d’exploitation | Windows OS |
| Version du système d’exploitation | 11.0 |
| Statut | In Product Plan
Le problème a été ajouté à la file d’attente de l’équipe de développement. L’objectif est de résoudre les problèmes portant ce statut dans une version à court terme (la prochaine version ou la suivante). En attendant la résolution complète du problème, retrouvez des informations utiles dans la section Informations supplémentaires ou Solution alternative correspondante.
|
Solution de contournement
During staging, it cannot reach the source of the layers in the project map when the script is not running in the project that has the source layers.
The workaround is to use the MakeFeatureLayer function to make real layers and pass the variables to the ExtractData function like to code sample below:
arcpy.management.MakeFeatureLayer(layers[0], Layers_to_Clip)
Area_of_Interest = "Area_of_Interest"
arcpy.management.MakeFeatureLayer(layers[1], Area_of_Interest)
result = arcpy.server.ExtractData(Layers_to_Clip, Area_of_Interest, "File Geodatabase - GDB - .gdb", "ESRI GRID - GRID", "Same As Input", None, outputfile)
Étapes pour reproduire
ID de bogue: BUG-000146786
Logiciel: