laptop and a wrench

Bug

The arcpy.management.SaveToLayerFile() function creates empty .lyrx files only when run from standalone Python scripts.

ArcGIS Pro
Bug ID Number BUG-000179880
SubmittedOctober 3, 2025
Last ModifiedOctober 15, 2025
Applies toArcGIS Pro
Version found3.5.3
Operating SystemWindows OS
Operating System Version11.0
StatusWill Not Be Addressed

Additional Information

For this scripting workflow, use lyr.saveACopy(lyrx_path) instead of arcpy.management.SaveToLayerFile(lyr, lyrx_path). Scripting error handling is not prioritized for arcpy.management.SaveToLayerFile.

Steps to Reproduce

Bug ID: BUG-000179880

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