Skip to content

Commit a67b6b2

Browse files
author
Simonx Xu
authored
Merge pull request #8749 from MicrosoftDocs/repo_sync_working_branch
Confirm merge from repo_sync_working_branch to main to sync with https://github.com/MicrosoftDocs/SupportArticles-docs (branch main)
2 parents 18bfc0b + 68bd4d4 commit a67b6b2

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

support/power-platform/power-apps/connections/best-practices-when-updating-a-flow.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Error codes on Flow run
33
description: Describes best practices and steps to mitigate common errors when running Microsoft flows in Power Apps.
44
ms.reviewer: mlalavat
5-
ms.date: 03/01/2024
5+
ms.date: 04/18/2025
66
ms.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+
200202
1. In the source environment, edit the app. Remove and then re-add the flows to the app. Save and publish the changes.
201203
2. In the target environment, remove all unmanaged layers on the app and flow.
202204
3. 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

Comments
 (0)