Question 620
A calculation maps document states using nested conditions that omit one valid enum value. A targeted trial still reproduces the original gap after the team attempted this change: Use an explicit AL case or conditional expression with complete expected branches. Which repair directly addresses the remaining defect?
Explanation
Correct Answer
Add the missing condition and an explicit error or fallback for unsupported values. This directly addresses the remaining defect for the requirement—A calculation maps document states using nested conditions that omit one valid enum value. It restores the mechanism described here: al control-flow expressions should cover supported states and handle unexpected values rather than silently selecting a wrong branch.
Incorrect Answers
This correction is for the separate condition: A shipping extension reports a generic failure while a warehouse user needs actionable guidance and context. It would not directly restore the intended behavior in this situation: A calculation maps document states using nested conditions that omit one valid enum value. Here, add the missing condition and an explicit error or fallback for unsupported values, because al control-flow expressions should cover supported states and handle unexpected values rather than silently selecting a wrong branch.
This correction is for the separate condition: A nightly item-sync process needs a controlled nonfatal fallback when optional data cannot be fetched. It would not directly restore the intended behavior in this situation: A calculation maps document states using nested conditions that omit one valid enum value. Here, add the missing condition and an explicit error or fallback for unsupported values, because al control-flow expressions should cover supported states and handle unexpected values rather than silently selecting a wrong branch.
This correction is for the separate condition: A stock process should update only records in one location but loops through every warehouse item. It would not directly restore the intended behavior in this situation: A calculation maps document states using nested conditions that omit one valid enum value. Here, add the missing condition and an explicit error or fallback for unsupported values, because al control-flow expressions should cover supported states and handle unexpected values rather than silently selecting a wrong branch.





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