Question 570
A validation routine stops processing with an opaque text error and support cannot tell which customer caused it. The developer recommends the following change: Raise a descriptive AL error with appropriate context and user-facing details. Which technical explanation most directly justifies it in this case?
Explanation
Correct Answer
Actionable error information identifies the failed business condition rather than only exposing an unexplained interruption. It connects the proposed action to the exact failure or requirement—A validation routine stops processing with an opaque text error and support cannot tell which customer caused it. Confirmation would be the invalid transaction is blocked and the message identifies the relevant record and corrective condition.
Incorrect Answers
That mechanism explains why the alternative action—use an appropriate guarded al error-handling pattern and preserve transactional safety—helps in another case. It does not justify the proposed fix here; actionable error information identifies the failed business condition rather than only exposing an unexplained interruption. The distinguishing requirement is: A validation routine stops processing with an opaque text error and support cannot tell which customer caused it.
That mechanism explains why the alternative action—apply record.setrange or setfilter before iterating the selected records—helps in another case. It does not justify the proposed fix here; actionable error information identifies the failed business condition rather than only exposing an unexplained interruption. The distinguishing requirement is: A validation routine stops processing with an opaque text error and support cannot tell which customer caused it.
That mechanism explains why the alternative action—iterate matching al records with findset and the appropriate next pattern—helps in another case. It does not justify the proposed fix here; actionable error information identifies the failed business condition rather than only exposing an unexplained interruption. The distinguishing requirement is: A validation routine stops processing with an opaque text error and support cannot tell which customer caused it.





Microsoft Dynamics 365 Business Central Developer (MB-820) Practice Tests