Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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:
  • Harry_rx Profile Picture
    96 on at
    Workflows attached to a canvas app don't work when deploying to a managed environment.
    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.
  • Akash1ve Profile Picture
    112 on at
    Workflows attached to a canvas app don't work when deploying to a managed environment.
    I think you need to assign at least basic user access in target environment. Error itself states the privileges issues.
  • Suggested answer
    MichaelFP Profile Picture
    1,831 Super User 2025 Season 1 on at
    Workflows attached to a canvas app don't work when deploying to a managed environment.
    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.
     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,635 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard