You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/power-platform/power-apps/connections/best-practices-when-updating-a-flow.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ ms.custom: sap:Connections\Creating or updating connections
7
7
---
8
8
# Troubleshoot Power Apps flow integration issues
9
9
10
-
*Applies to:* Power Apps
10
+
*Applies to:* Power Apps
11
11
*Original KB number:* 4477072
12
12
13
13
When integrating Power Automate flows with Power Apps, you might encounter various errors that prevent flows from running correctly. This article helps you troubleshoot common integration issues and provides best practices for managing flow updates.
@@ -45,16 +45,18 @@ Some Power Automate flows might fail to run in Power Apps and you might see an e
45
45
46
46
### Cause
47
47
48
-
This issue occurs when the Power Automate flow is updated to use a new connection, but the app still uses the old flow metadata. Even though the flow is updated, the apps that reference the flow still retain the previous flow metadata. To resolve this error, manually edit the app so changes appear in the app and the flow works.
48
+
This issue occurs when the Power Automate flow is updated to use a new connection, but the app still uses the old flow metadata. Even though the flow is updated, the apps that reference the flow still retain the previous flow metadata.
49
49
50
50
### Mitigation steps
51
51
52
52
> [!NOTE]
53
53
> Make sure to perform the following steps in the source or development environment and update the solution. After you update the solution in the source or development environment, export and import it into all target or production environments.
54
54
55
+
To resolve this error, manually edit the app so changes appear in the app and the flow works.
56
+
55
57
1. Open the app for editing using the [latest version of Power Apps Studio](/power-platform/released-versions/powerapps).
56
58
2.[Remove the Power Automate flows from the app](/power-apps/maker/canvas-apps/working-with-flows#remove-a-flow).
57
-
3. Readd the flows to the app.
59
+
3.[Readd the flows to the app](/power-apps/maker/canvas-apps/working-with-flows#add-an-existing-flow).
58
60
4. Save and republish the app.
59
61
60
62
## Error code "ConnectionAuthorizationFailed" on Power Automate flow run
@@ -183,8 +185,8 @@ This error occurs when the flow in the target environment has changes that aren'
183
185
> [!NOTE]
184
186
> Make sure to perform the following steps in the source or development environment and update the solution. After you update the solution in the source or development environment, export and import it into all target or production environments.
185
187
186
-
1. In the source environment, edit the app. Remove and then readd the flows to the app. Save and publish the changes.
187
-
2. In the target environment, remove all unmanaged solution layers from the app and flow.
188
+
1. In the source environment, edit the app. [Remove](/power-apps/maker/canvas-apps/working-with-flows#remove-a-flow) and then [readd](/power-apps/maker/canvas-apps/working-with-flows#add-an-existing-flow) the flows to the app. Save and publish the changes.
189
+
2. In the target environment, [remove all unmanaged solution layers](/power-apps/maker/data-platform/solution-layers#remove-an-unmanaged-layer) from the app and flow.
188
190
3. Export the solution and import it into the target environment.
189
191
190
192
> [!NOTE]
@@ -216,7 +218,7 @@ This error occurs when the app's flow metadata expects a specific connection ref
216
218
217
219
Reset the Power Automate flows in the app:
218
220
219
-
1. In the source environment, edit the app. Remove and then readd the Power Automate flows to the app. Save and publish the changes.
221
+
1. In the source environment, edit the app. [Remove](/power-apps/maker/canvas-apps/working-with-flows#remove-a-flow) and then [readd](/power-apps/maker/canvas-apps/working-with-flows#add-an-existing-flow) the Power Automate flows to the app. Save and publish the changes.
220
222
2. In the target environment, remove all unmanaged solution layers from the app and Power Automate flow.
221
223
3. Export the solution and import it into the target environment.
222
224
@@ -228,9 +230,9 @@ Reset the Power Automate flows in the app:
228
230
Change the connection from **Embedded** to **Invoker**:
229
231
230
232
1. To edit and update the flow settings, navigate to the Power Automate flow portal.
231
-
2. On the flow details page, in the **Runonly users** section, select **Edit**.
233
+
2. On the flow details page, in the **Run-only user** section, select **Edit**.
232
234
3. To update the flow connection source to **Invoker**, select **Provided by run-only user** and save.
233
-
4. Verify by triggering the flow. You should now find the "install flow network" calls to be successful.
235
+
4. Verify by triggering the flow.
234
236
235
237
## Failures caused by Power Automate flow updates
236
238
@@ -264,7 +266,7 @@ If a response output is removed, Power Apps treats the value as blank and the ap
264
266
265
267
### Cause
266
268
267
-
Power Apps needs to know three things to invoke a flow: what inputs the flow requires, what connections to provide, and what outputs the flow returns. Power Apps stores this information in your app definition, creating a binding between your app version and the flows it uses. When you change any of these three flow aspects, you can break all previous app versions that integrate with that flow. To fix an affected app or use these flow changes, you need to update the app.
269
+
Power Apps needs to know three things to invoke a flow: what inputs the flow requires, what connections to provide, and what outputs the flow returns. Power Apps stores this information in your app definition, creating a binding between your app version and the flows it uses. When you change any of these three flow aspects, you can break all previous app versions that integrate with that flow.
268
270
269
271
Types of changes most likely to break a Power Apps ability to call a Power Automate flow include:
270
272
@@ -288,7 +290,7 @@ Other changes to the inputs or outputs might not break the integration between P
288
290
289
291
### Resolution
290
292
291
-
The approach you take to resolve the issue depends on whether you're working with a live app or a development version. Each scenario requires different steps to prevent disruption to users.
293
+
To fix an affected app or use these flow changes, you need to update the app. The approach you take to resolve the issue depends on whether you're working with a live app or a development version. Each scenario requires different steps to prevent disruption to users.
292
294
293
295
#### Changing a published (live) Power App
294
296
@@ -315,12 +317,10 @@ Follow these steps:
315
317
316
318
1. Make your changes to the flow (inputs, outputs, or connections).
317
319
2. In Power Apps Studio, go to the **Flows** pane.
318
-
3. Remove the flow from your app.
319
-
4. Add the updated flow back to your app.
320
+
3.[Remove the flow from your app]((/power-apps/maker/canvas-apps/working-with-flows#remove-a-flow)).
321
+
4.[Add the updated flow back to your app](/power-apps/maker/canvas-apps/working-with-flows#add-an-existing-flow).
320
322
5. Save your app.
321
323
322
-
:::image type="content" source="media/best-practices-when-updating-a-flow/reselect-flow.png" alt-text="Screenshot of updating a flow definition in Power Apps.":::
323
-
324
324
This process updates your app to use the flow's new configuration. Since the app isn't published yet, your changes don't affect users.
0 commit comments