Question 170
A warehouse extension is published into a sandbox without executing its post-install setup routine. The developer recommends the following change: Include the appropriate install codeunit and verify its first-install behavior. Which technical explanation most directly justifies it in this case?
Explanation
Correct Answer
Installation logic initializes data and configuration when the extension is installed, independently of subsequent upgrades. It connects the proposed action to the exact failure or requirement—A warehouse extension is published into a sandbox without executing its post-install setup routine. Confirmation would be a fresh test tenant installs the app and receives the expected setup records exactly once.
Incorrect Answers
That mechanism explains why the alternative action—implement an upgrade codeunit and rehearse migration on representative historical records—helps in another case. It does not justify the proposed fix here; installation logic initializes data and configuration when the extension is installed, independently of subsequent upgrades. The distinguishing requirement is: A warehouse extension is published into a sandbox without executing its post-install setup routine.
That mechanism explains why the alternative action—use a reproducible al build and release pipeline with fixed source revision and dependency versions—helps in another case. It does not justify the proposed fix here; installation logic initializes data and configuration when the extension is installed, independently of subsequent upgrades. The distinguishing requirement is: A warehouse extension is published into a sandbox without executing its post-install setup routine.
That mechanism explains why the alternative action—set vs code breakpoints and debug the extension execution path in the sandbox—helps in another case. It does not justify the proposed fix here; installation logic initializes data and configuration when the extension is installed, independently of subsequent upgrades. The distinguishing requirement is: A warehouse extension is published into a sandbox without executing its post-install setup routine.





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