Which type of exception should you handle?

Posted by: Pdfprep Category: MB6-894 Tags: , ,

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?
A . UpdateConflict
B . CodeAccessSecurity
C . UpdateConflictNotRecovered
D . Deadlock

Answer: A

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

Leave a Reply

Your email address will not be published.