Fixing the ‘The selected package is missing the following modules’ Error in Dynamics 365 F&O
Deploying a package to a Dynamics 365 Finance & Operations environment should be routine, but what if your deployment fails with a missing module error?
The selected package is missing the following modules that are currently deployed on your environment. You must create an all-in-one deployable package that contains all your code customizations and ISV solutions. More information can be found at the following link: https://go.microsoft.com/fwlink/?linkid=2118104. Missing module(s): [missingModule1] [missingModule2]
Why This Error Happens?
This error typically occurs when modules previously installed, often related to Independent Software Vendor (ISV) solutions, are not included in the current deployable package. If you’ve recently removed or altered ISVs or other customizations, the system expects them to still be part of the deployment unless explicitly uninstalled.
How to Fix It Using ModuleToRemove.txt
Step-by-Step Solution
To fix this issue, you need to uninstall the missing modules explicitly. Here’s how you can do it:
1️⃣ Create ModuleToRemove.txt
The ModuleToRemove.txt acts as a signal to remove the specified modules during the deployment, allowing the process to complete without errors.
2️⃣ Prepare the Deployable Package
3️⃣ Upload the Package to Lifecycle Services (LCS)
4️⃣ Deploy the Package
Apply the deployable package to your environment through the LCS portal:
5️⃣ Verify Uninstallation
Put It into Play
Following these steps will resolve the “missing modules” error swiftly. Properly managing your modules and understanding the deployment process in D365 F&O ensures smooth operations and fewer disruptions.
Encountered similar issues or have more tips? Share your experience in the comments!
Useful, thanks for sharing.
Development Solution Architect bei Inway Systems GmbH
3wIf you want to streamline steps 1+2, take a look at New-D365ModuleToRemove and Add-D365ModuleToRemove https://github.com/d365collaborative/d365fo.tools/wiki/New-D365ModuleToRemove#example-2