nerdexam
Microsoft

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).

Read and Write Basic X++

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)
  • A
    81% (50)
  • B
    5% (3)
  • C
    3% (2)
  • D
    11% (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

#exception handling#UpdateConflict#record locking#concurrency

Community Discussion

No community discussion yet for this question.

Full MB6-894 Practice