laptop and a wrench

Bug

The Save To Layer File management tool fails and returns Error 999999 when run from the Python IDLE window in ArcGIS Pro.

Last Published: January 2, 2020 ArcGIS Pro
Bug ID Number BUG-000117445
SubmittedOctober 15, 2018
Last ModifiedJune 5, 2024
Applies toArcGIS Pro
Version found2.2.3
Operating SystemN/A
Operating System VersionN/A
StatusKnown Limit

Additional Information

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.

Workaround

Run the Python script in the Python window of ArcGIS Pro.

Steps to Reproduce

Bug ID: BUG-000117445

Software:

  • ArcGIS Pro

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options