I created one model driven power app solution. It consists of custom tables, standard tables, Approval workflows, custom security roles, default security roles, power bi dashboard, column securities and many more components. It is working totally fine in development environment. I exported it. Now I created new production environment for Testing the application. When I am importing the solution, it is showing missing dependencies error and failing the import. It says that 'Approvals User' security role is missing. I checked in admin center it is not there. But it was pre-existing role in dev environment. Even Approval tables associated with this role are not available in this new production environment. Below is the error log:
<MissingDependency><Required type=\"20\" displayName=\"Approvals User\" solution=\"msdyn_FlowApprovalsCore (2.0.4.7)\" id=\"{b9b08637-acf6-e711-a95a-000d3a11f5ee}\"><package>msdyn_FlowApprovals (2.0.4.7)</package></Required><Dependent type=\"80\" schemaName=\"new_PRTracker\" displayName=\"PR Tracker\" /></MissingDependency>
Can someone suggest how to tackle this? Why there are less default tables and less default roles in production environment? Can't I just export these roles from dev? (I didn't find the option to do so). Is there a way to solve this? I can't create similar new role because tables used in that security role in dev are also missing in this environment.