SEARCH THE COMMUNITY

Find an existing answer

1 results for “deadlocks”

CommunityD365FO X++: When to use `while select forUpdate` vs optimistic concurrency to avoid deadlocksIn Dynamics 365 Finance and Operations (X++), what are the correct patterns for updating rows that are first selected inside a `while select` loop using `forUpdate` (or `selectForUpdate`), and how can I avoid deadlocks/lock escalation when multiple transactions update the same re