Question 150
A supplier rebate extension fails only in a particular codeunit path and support needs to inspect live variables safely in a sandbox. The developer recommends the following change: Set VS Code breakpoints and debug the extension execution path in the sandbox. Which technical explanation most directly justifies it in this case?
Explanation
Correct Answer
The AL debugger exposes call flow and variable state at the problematic trigger or subscriber. It connects the proposed action to the exact failure or requirement—A supplier rebate extension fails only in a particular codeunit path and support needs to inspect live variables safely in a sandbox. Confirmation would be a reproducing transaction reaches the breakpoint and the inspected values explain the failing branch.
Incorrect Answers
That mechanism explains why the alternative action—build the al project into an .app package and promote the tested artifact through the release process—helps in another case. It does not justify the proposed fix here; the al debugger exposes call flow and variable state at the problematic trigger or subscriber. The distinguishing requirement is: A supplier rebate extension fails only in a particular codeunit path and support needs to inspect live variables safely in a sandbox.
That mechanism explains why the alternative action—generate and maintain xlf translations and use translatable al captions and labels—helps in another case. It does not justify the proposed fix here; the al debugger exposes call flow and variable state at the problematic trigger or subscriber. The distinguishing requirement is: A supplier rebate extension fails only in a particular codeunit path and support needs to inspect live variables safely in a sandbox.
That mechanism explains why the alternative action—include the appropriate install codeunit and verify its first-install behavior—helps in another case. It does not justify the proposed fix here; the al debugger exposes call flow and variable state at the problematic trigger or subscriber. The distinguishing requirement is: A supplier rebate extension fails only in a particular codeunit path and support needs to inspect live variables safely in a sandbox.





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