The StageService_server function fails on CreateGPSDDraft of the Extract Data (Server) tool result outside of ArcGIS Pro, returning ERROR 001249.
上次发布: April 22, 2022ArcGIS API for Python
漏洞 ID 编号
BUG-000146786
已提交
February 10, 2022
上次修改时间
April 17, 2024
适用范围
ArcGIS API for Python
找到的版本
1.9.1
操作系统
Windows OS
操作系统版本
11.0
状态
In Product Plan
该问题已添加到开发团队的解决问题中。 对于具有此状态的问题,将在近期版本(下一个或两个版本)中进行解决。 检查问题的“其他信息”或“备用解决方案”部分,寻找可以完全解决此问题的有用信息。
解决办法
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)