The Save To Layer File management tool fails and returns Error 999999 when run from the Python IDLE window in ArcGIS Pro.
上次发布: January 2, 2020ArcGIS Pro
漏洞 ID 编号
BUG-000117445
已提交
October 15, 2018
上次修改时间
June 5, 2024
适用范围
ArcGIS Pro
找到的版本
2.2.3
操作系统
N/A
操作系统版本
N/A
状态
Known Limit
经开发团队审核,已确定此问题与不受 Esri 控制的软件的已知限制有关。 问题的“其他信息”部分可能包含进一步说明。
附加信息
Add MakeFeatureLayer and use that output as input to 'SaveToLayerFile'.
like so
arcpy.management.MakeFeatureLayer(lyr, "lyr1")
arcpy.SaveToLayerFile_management("lyr1", out_layer_file)
This makes the layer object something that the geoprocessing tools know how to work with.
解决办法
Run the Python script in the Pythonwindow of ArcGIS Pro.