Views:

Applies to Product - Power Automate


What’s happening?
When importing a solution package, default values are disappearing from environment variables, and Power Apps based instant cloud flows are getting disconnected from the app.


Reason:
This arise after deploying the solution in the target environment, where the instant flows triggered by PowerApps become disconnected from the app, and the current values of some environmental variables are cleared. This can lead to errors such as "list not found" or "flow failed" when users attempt to log into the app.


Resolution:

  1. Ensure the app is in a solution in the development environment.
  2. Open the app for editing and remove all data sources (there are typically multiple).
  3. After removing the data sources, add them back. This step updates the app metadata.
  4. Save and publish the app.
  5. In the target environment, delete any unmanaged app layers if present.
  6. Export the solution from the development environment and import it into the target environment.
  7. If this persists, verify that users in the target environment have the necessary connections for any services used by the flows, as this can indicate that the flow metadata in the Power App is out of sync.