Select to view content in your preferred language

Pro 3.1.3: Running an update cursor on a feature layer will break if its Attribute table is open.

520
0
10-18-2023 10:07 AM
AlfredBaldenweck
MVP Regular Contributor

Kind of a PSA.

I switched to Pro 3.1.3 and was testing some tools I wrote in Pro 2.9. 

One works with an input feature layer, which then has an update cursor applied.

It kept failing because it couldn't acquire a lock.

AlfredBaldenweck_0-1697648573106.png

Turns out, that "lock" is created by having the attribute table open.

Things that are definitely not contributing:

  • The feature class is not being edited, am in fact using manual edit sessions and I'm not in one.
  • In the tool, the update cursor is wrapped in an editor object.

It is literally just having the attribute table open.

I can't believe this is intended behavior (it's never worked like this before), so I have to assume it's a bug.

Hopefully this saves someone else a huge headache in the future.

 

Edit to add: This seems to be only a problem when using tools. Python window is fine.

0 Kudos
0 Replies