We have a sandbox environment and a production environment. We develop on sandbox and deploy to production as managed (with version bump and upgrade). In the last deploy, a table was missing in the solution, because it was removed from the solution. The table still exists in our sandbox environment.
Now, we deployed the solution to production, which led to an error: Failed to upgrade solution. Solution dependencies exist, cannot uninstall. The error is caused because a table was missing in the solution and Dynamics tried to delete the table during the upgrade. There are now two versions of our solution on production:
My question is: is it safe to delete the "_Upgrade" solution in production, and then to import the solution again from sandbox, but this time with the missing table?
Solved! Go to Solution.
Just found this piece of advice from Microsoft (Removing dependencies (Microsoft Dataverse) - Power Platform | Microsoft Learn). Seems safe to delete the _Upgrade solution:
If you're trying to upgrade a solution
In this case, you must confirm that you wanted to delete the required component (remember that dependencies are enforced only on components that are being deleted).
If you didn't want to delete the component, you can fix the new version of the solution by adding the component back by doing the following:
If the deletion is intentional, you must remove the dependency. Try the steps outlined in the preceding section, "If you're trying to uninstall a solution."
You are correct and it is safe to remove the upgraded one 🙂
Signature:
If you appreciated my comments/responses please be sure to Like/Kudo them it really does make me smile 🙂 !
Link to the Power Platform Professionals United Kingdom User Group:
Just found this piece of advice from Microsoft (Removing dependencies (Microsoft Dataverse) - Power Platform | Microsoft Learn). Seems safe to delete the _Upgrade solution:
If you're trying to upgrade a solution
In this case, you must confirm that you wanted to delete the required component (remember that dependencies are enforced only on components that are being deleted).
If you didn't want to delete the component, you can fix the new version of the solution by adding the component back by doing the following:
If the deletion is intentional, you must remove the dependency. Try the steps outlined in the preceding section, "If you're trying to uninstall a solution."
You are correct and it is safe to remove the upgraded one 🙂
Signature:
If you appreciated my comments/responses please be sure to Like/Kudo them it really does make me smile 🙂 !
Link to the Power Platform Professionals United Kingdom User Group:
Thank you, trying it out now. I'll keep the thread updated.
It worked. We deleted the *_Upgrade solution. Then we exported the solution from the sandbox environment with the previously missing table, and imported it successfully to production.
Perfect I am happy to hear that it worked for you 🙂
Signature:
If you appreciated my comments/responses please be sure to Like/Kudo them it really does make me smile 🙂 !
Link to the Power Platform Professionals United Kingdom User Group:
User | Count |
---|---|
20 | |
10 | |
9 | |
5 | |
5 |
User | Count |
---|---|
34 | |
32 | |
19 | |
18 | |
7 |