22title : Error codes on Flow run
33description : Describes best practices and steps to mitigate common errors when running Microsoft flows in Power Apps.
44ms.reviewer : mlalavat
5- ms.date : 03/01/2024
5+ ms.date : 04/18/2025
66ms.custom : sap:Connections\Creating or updating connections
77---
88# Best practices when updating a flow used by a Power App
@@ -173,7 +173,7 @@ The reason is that there might be a change to the flow in the target environment
173173 > [ !NOTE]
174174 > There can be no unmanaged layers on either the flow or the app because this can cause issues in connection to the flow.
175175
176- ## Error code "NotAllowedConnectionReferenceon " on Flow run
176+ ## Error code "NotAllowedConnectionReference " on Flow run
177177
178178``` output
179179 {
@@ -197,6 +197,8 @@ This error means that the app has flow metadata that specifies that a SQL connec
197197
198198#### Mitigation option 1
199199
200+ Reset the flows in the app:
201+
2002021 . In the source environment, edit the app. Remove and then re-add the flows to the app. Save and publish the changes.
2012032 . In the target environment, remove all unmanaged layers on the app and flow.
2022043 . Export the solution and import it into the target environment.
@@ -206,12 +208,12 @@ This error means that the app has flow metadata that specifies that a SQL connec
206208
207209#### Mitigation option 2
208210
209- 1 . Change the connection from ** Embedded** to ** Invoker** .
210- 2 . Navigate to the flow portal to edit and update the flow settings.
211- 3 . On the flow details page, in the ** Run only users ** section, select ** Edit ** .
212- 4 . To update the flow connection source to ** Invoker ** , select ** Provided by run-only user ** and save .
213- 5 . To update the flow connection source to ** Embedded ** , select ** Use this connection ** and save.
214- 6 . Verify by triggering the flow. You see that the "install flow network" calls now are succeeding .
211+ Change the connection from ** Embedded** to ** Invoker** :
212+
213+ 1 . Navigate to the flow portal to edit and update the flow settings .
214+ 2 . On the flow details page, in the ** Run only users ** section , select ** Edit ** .
215+ 3 . To update the flow connection source to ** Invoker ** , select ** Provided by run-only user ** and save.
216+ 4 . Verify by triggering the flow. You see that the "install flow network" calls are now successful .
215217
216218## Other symptoms
217219
0 commit comments