Question 180
A data field changes structure in an extension update while existing invoice records must be migrated. A targeted trial still reproduces the original gap after the team attempted this change: Implement an upgrade codeunit and rehearse migration on representative historical records. Which repair directly addresses the remaining defect?
Explanation
Correct Answer
Fix the upgrade codeunit's data conversion and validate the migration against a restored old-version dataset. This directly addresses the remaining defect for the requirement—A data field changes structure in an extension update while existing invoice records must be migrated. It restores the mechanism described here: upgrade logic maps existing tenant data to the new schema during an app version transition.
Incorrect Answers
This correction is for the separate condition: An extension build generated from one commit works locally but deployment carries an older artifact from another branch. It would not directly restore the intended behavior in this situation: A data field changes structure in an extension update while existing invoice records must be migrated. Here, fix the upgrade codeunit's data conversion and validate the migration against a restored old-version dataset, because upgrade logic maps existing tenant data to the new schema during an app version transition.
This correction is for the separate condition: A supplier rebate extension fails only in a particular codeunit path and support needs to inspect live variables safely in a sandbox. It would not directly restore the intended behavior in this situation: A data field changes structure in an extension update while existing invoice records must be migrated. Here, fix the upgrade codeunit's data conversion and validate the migration against a restored old-version dataset, because upgrade logic maps existing tenant data to the new schema during an app version transition.
This correction is for the separate condition: A release engineer must move a tested finance extension into a managed deployment pipeline from source control. It would not directly restore the intended behavior in this situation: A data field changes structure in an extension update while existing invoice records must be migrated. Here, fix the upgrade codeunit's data conversion and validate the migration against a restored old-version dataset, because upgrade logic maps existing tenant data to the new schema during an app version transition.





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