MB6-894 · Question #50
You are planning to use X++ to develop a solution that will update multiple records. You need to ensure that if the solution attempts to modify records that are currently being edited by a user, the…
The correct answer is A. UpdateConflict. UpdateConflict: Indicates that an error has occurred in a transaction that is using Optimistic Concurrency Control. The transaction can be retried (use a retry statement in the catch block).
Question
You are planning to use X++ to develop a solution that will update multiple records. You need to ensure that if the solution attempts to modify records that are currently being edited by a user, the operation will be retried. Which type of exception should you handle?
Options
- AUpdateConflict
- BCodeAccessSecurity
- CUpdateConflictNotRecovered
- DDeadlock
How the community answered
(62 responses)- A81% (50)
- B5% (3)
- C3% (2)
- D11% (7)
Explanation
UpdateConflict: Indicates that an error has occurred in a transaction that is using Optimistic Concurrency Control. The transaction can be retried (use a retry statement in the catch block).
Topics
Community Discussion
No community discussion yet for this question.