.lyrx and .lyr error

858
3
09-04-2024 08:44 AM
Labels (2)
smschaepe
Occasional Contributor

I've recently switched from ArcGIS Pro v. 3.2 to 3.3 and am now getting the same error message with scripts containing text ".lyrx". Has anyone that has switched to 3.3 experienced this issue and know if it's been addressed?

I wrote a script with one line of code: print(".lyrx") and created a new tool in a toolbox with no input parameters to call the script. It errored out with the same message.

ERROR 001681: Found REMOVED Layer File .lyrx within script tool LayerTest_NFACTtest(C:\Users\first.last\Floodplain@1)

0 Kudos
3 Replies
DanPatterson
MVP Esteemed Contributor

what is this?

C:\Users\first.last\Floodplain@1


... sort of retired...
0 Kudos
smschaepe
Occasional Contributor

The file location where the script is saved. The error message adds the @1 to the end to signal the line of code that it has issue with.

0 Kudos
smschaepe
Occasional Contributor

This issue was resolved by disabling "Analyse Script and model tools for ArcGIS Pro compatibility", in options/geoprocessing.

0 Kudos