laptop and a wrench

Bug

OS Error when leveraging the arcpy.mp.LayerFile() function if ArcGIS Server's build number is less than the "Build" parameter value associated with a .lyrx file

Last Published: September 22, 2021 ArcGIS GIS Server
Bug ID Number BUG-000142268
SubmittedAugust 17, 2021
Last ModifiedJune 28, 2025
Applies toArcGIS GIS Server
Version found10.8.1
Operating SystemWindows OS
Operating System VersionN/A
Version Fixed2.9
StatusFixed

Workaround

Use a new version of ArcGIS Server to execute the script or use an older version of ArcGIS Pro.

This is likely not acceptable for large organizations with updated ArcGIS Enterprise environments:

For example for ArcGIS Server 10.9, .lyrx files created with ArcGIS Pro version 2.8.0 or later cannot be leveraged without triggering the OS error.

Steps to Reproduce

Bug ID: BUG-000142268

Software:

  • ArcGIS GIS Server

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