web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Workflows attached to ...
Power Apps
Suggested Answer

Workflows attached to a canvas app don't work when deploying to a managed environment.

(2) ShareShare
ReportReport
Posted on by 96
Every time I deploy a solution containing a canvas app with a flow attached to it, to a managed environment, the flow errors out for a user the app is shared with (in the managed environment).
 
Example: 
 
The workaround, which I was shown by an ISV consultant a few years back is:
 
In the managed environment:
1. Go to Default solution.
2. Edit the app.
3. Remove the flow from the app.
4. Immediately add it back in.
5. Save and publish the app.
 
Now the solution has an unmanaged layer in a managed environment.
 
If I try to update the solution, it works ok and no blockers are generated due to the unmanaged layer but I have to repeat the process of adding in an unmanaged layer to the app. I am using pipelines but the same thing happens if I use package export and import.
 
Can someone point out if I am missing an important step? I would prefer not to have to introduce unmanaged layers in a managed environment and for the app deployment to work first time without manual editing in the prod environment.
 
Appreciate any help on this.
Categories:
I have the same question (1)
  • Suggested answer
    MichaelFP Profile Picture
    1,847 Super User 2025 Season 2 on at
    Based on your screenshot, the user that is running the cloud doesn't have access to read flows. Look at the roles that are assigned to the user on the managed environment and check if he can read workflows.
     
  • Akash1ve Profile Picture
    112 on at
    I think you need to assign at least basic user access in target environment. Error itself states the privileges issues.
  • Harry_rx Profile Picture
    96 on at
    Thanks both. Everyone in the organisation has a basic user role in the production environment. I know the error states it's a privilage issue, but I am not convinced because that doesn't clearly explain how it's resolved by removing and adding the flow back into the canvas app in production. This seems like the flow is not being registered correctly on import into a new environment.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard