Showing results for 
Search instead for 
Did you mean: 
Super User
Super User

Cannot turn on flow in solution



I built a powerapp using the new power automate pane in powerapps to build a flow inside Powerapps.


Everything was built inside a solution. 


I exported the solution as unmanaged to my test environment and when I try to access my flow inside Powerapps I get an error to say that I need to remove the flow which I did.


When I try add the flow again it tells me the flow is off and that I must turn it on.


I went to the flow in the solution and tried to turn it on but then got this error:


Flow client error returned with status code "BadRequest" and details "{"error":{"code":"InvalidOpenApiFlow","message":"Flow save failed with code 'InvalidRequestContent' and message 'The request content is not valid and could not be deserialized: 'The 'id' property 'subscriptions/427976e2-4271-4308-afb8-d28d53a6ad06/providers/Microsoft.Web/locations/westeurope/runtimes/europe-002/apis/sharepointonline/connections/' under 'properties.connectionReferences.shared_sharepointonline.connection' is not valid.'.'."}}".




What am I doing wrong?





Skilled Sharer
Skilled Sharer

Hi @DanielRK,


Sounds like the connection reference is not set properly. Could you open your flow in Edit mode and have a look at the action(s) using SharePoint?

Could you try and switch your action to another connection reference, or create a new one in the target environment?

Hi @joe_hannes_col ,


Thank you for your help! I haven't worked with connection references yet.


I'm going to read up on it and will try this.


Thank you very much!





Super User
Super User

Hi @DanielRK ,


Try to open the flow and  do 'save as'  and create it as a new flow. Now you should be able to turn it on.

Also refer this article.

Else I suggest to raise a support ticket.

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

My Blog: Dynamics 365 Key Topics –

My YouTube Channel :




Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (2,518)