Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve optimistic concurrency exception #22269

Open
Tracked by #14496
tester346 opened this issue Aug 27, 2020 · 1 comment
Open
Tracked by #14496

Improve optimistic concurrency exception #22269

tester346 opened this issue Aug 27, 2020 · 1 comment

Comments

@tester346
Copy link

tester346 commented Aug 27, 2020

Hello,

Database operation expected to affect 1 row(s) but actually affected 0 row(s). Data may have been modified or deleted since entities were loaded. See http://go.microsoft.com/fwlink/?LinkId=527962 for information on understanding and handling optimistic concurrency exceptions.

I believe that this particular exception message is too general.

Not only other people complained about it ( #17747 (comment) ), but also I think it is kinda misleading (emphasis on concurrency).

Can we receive some more details like... about which entity (idk maybe its id or json dump or something) it is complaining?

I think it'd make migration between EFC versions way easier / less painful

Describe the solution you'd like

More detailed info about why this exception has been thrown.

@ajcvickers
Copy link
Member

Putting on the backlog to consider adding some identifying information in the message when sensitive data logging is enabled. This will primarily be useful for debugging cases where this is not thrown as the result of optimistic concurrency, but rather as a consequence of things like triggers in the database.

@ajcvickers ajcvickers added this to the Backlog milestone Aug 28, 2020
@AndriySvyryd AndriySvyryd changed the title Data may have been modified or deleted... error should give some details Improve optimistic concurrency exception Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants