I'm encountering an AttributeError when calling updateConnectionPropertieson a layer.
This error is also inconsistent:
- It appears sporadically. I've run the tool with the exact same inputs and it has worked. Then, I'll run the tool again, and it will give me this error.
- I've also tried iteratively calling the method on copies of the layer within a for loop, using the same connection properties dictionary and new connection properties dictionary. It may succeed for a few times before failing.
There is also no descriptive error message (it just says AttributeError).
I've verified that:
- The layer object is of type arcpy._mp.Layer
- updateConnectionProperties is listed among the object's valid attributes and methods

Any help would be appreciated.