Skip to content

Commit 831618e

Browse files
committed
Additional cleanup
1 parent 85e576e commit 831618e

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

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

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ Flow integration errors typically occur when:
1616

1717
- Flow metadata becomes out of sync with your app
1818
- Connection permissions are insufficient or misconfigured
19-
- Flows are disabled or have timed out
19+
- Flows are disabled or timed out
2020
- Flow definitions change after app deployment
2121

22-
This document covers the following error codes along with their causes and mitigation strategies.
22+
This document covers the following error codes along with their causes and mitigation strategies:
2323

2424
- [InvokerConnectionOverrideFailed](#error-code-invokerconnectionoverridefailed-on-power-automate-flow-run)
2525
- [ConnectionAuthorizationFailed](#error-code-connectionauthorizationfailed-on-power-automate-flow-run)
@@ -31,7 +31,7 @@ This document covers the following error codes along with their causes and mitig
3131

3232
## Error code "InvokerConnectionOverrideFailed" on Power Automate flow run
3333

34-
Some Power Automate flows may fail to run in Power Apps and you might see an error that resembles the following in the Power Automate flow run history or the Power Apps telemetry:
34+
Some Power Automate flows might fail to run in Power Apps and you might see an error that resembles the following in the Power Automate flow run history or the Power Apps telemetry:
3535

3636
```output
3737
{
@@ -41,20 +41,20 @@ Some Power Automate flows may fail to run in Power Apps and you might see an err
4141
```
4242

4343
> [!NOTE]
44-
> This error may also occur when you call the install API on Dataverse (formerly Common Data Service), resulting in a generic error message: "Install flow failed."
44+
> This error might also occur when you call the install API on Dataverse (formerly Common Data Service), resulting in a generic error message: "Install flow failed."
4545
4646
### Cause
4747

48-
This issue occurs when the Power Automate flow has been 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, 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. To resolve this error, manually edit the app so changes appear in the app and the flow works.
4949

5050
### Mitigation steps
5151

5252
> [!NOTE]
53-
> Make sure to perform the following steps in the source or development environment and update the solution. After updating the solution in the source or development environment, export and import it into all target or production environments.
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.
5454
5555
1. Open the app for editing using the [latest version of Power Apps Studio](/power-platform/released-versions/powerapps).
5656
2. [Remove the Power Automate flows from the app](/power-apps/maker/canvas-apps/working-with-flows#remove-a-flow).
57-
3. Re-add the flows to the app.
57+
3. Readd the flows to the app.
5858
4. Save and republish the app.
5959

6060
## Error code "ConnectionAuthorizationFailed" on Power Automate flow run
@@ -68,12 +68,12 @@ This issue occurs when the Power Automate flow has been updated to use a new con
6868

6969
### Cause
7070

71-
This error means that although the maker has permissions to the Power Automate flow, the maker doesn't have permissions to the dependent connections that are used in the flow actions. This is a limitation of the Power Apps and Power Automate flow integration.
71+
This error means that the maker doesn't have permissions to the dependent connections that are used in the flow actions. This error can occur even if the maker has permissions to the Power Automate flow itself. This issue is a limitation of the Power Apps and Power Automate flow integration.
7272

7373
### Mitigation steps
7474

7575
> [!NOTE]
76-
> Make sure to perform the following steps in the source or development environment and update the solution. After updating the solution in the source or development environment, export and import it into all target or production environments.
76+
> 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.
7777
7878
To mitigate this issue, ensure that all connections used in the Power Automate flow are authorized for the user who is adding the flow to the app. The user must have the necessary permissions for each connection referenced by the Power Automate flow. For more information, see [Understand flow ownership and access](/power-automate/guidance/coding-guidelines/understand-access-to-flows).
7979

@@ -88,12 +88,12 @@ To mitigate this issue, ensure that all connections used in the Power Automate f
8888

8989
### Cause
9090

91-
The Power Automate flow has been disabled or turned off.
91+
The Power Automate flow is disabled or turned off.
9292

9393
### Mitigation steps
9494

9595
> [!NOTE]
96-
> Make sure to perform the following steps in the source or development environment and update the solution. After updating the solution in the source or development environment, export and import it into all target or production environments.
96+
> 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.
9797
9898
Ensure that the [Power Automate flow is turned on](/power-automate/disable-flow#turn-on-a-flow) and verify the flow run by testing it manually.
9999

@@ -123,7 +123,7 @@ This error indicates that a synchronous Power Automate flow run exceeds the maxi
123123
### Mitigation steps
124124

125125
> [!NOTE]
126-
> Make sure to perform the following steps in the source or development environment and update the solution. After updating the solution in the source or development environment, export and import it into all target or production environments.
126+
> 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.
127127
128128
To mitigate this issue, [identify which Power Automate flow runs are exceeding the timeout limit](/power-automate/fix-flow-failures#identify-specific-flow-runs) and optimize the flow's actions to complete within 120 seconds. Review the recommendations in [Troubleshoot slow running flows](~/power-platform/power-automate/flow-run-issues/troubleshoot-slow-running-flows.md).
129129

@@ -147,9 +147,9 @@ To mitigate this issue, [identify which Power Automate flow runs are exceeding t
147147
### Mitigation steps
148148

149149
> [!NOTE]
150-
> Make sure to perform the following steps in the source or development environment and update the solution. After updating the solution in the source or development environment, export and import it into all target or production environments.
150+
> 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.
151151
152-
Try the mitigation steps described for the following error codes, as the underlying causes may be similar:
152+
Try the mitigation steps described for the following error codes, as the underlying causes might be similar:
153153

154154
- [WorkflowTriggerIsNotEnabled](#error-code-workflowtriggerisnotenabled-on-power-automate-flow-run)
155155
- [ConnectionAuthorizationFailed](#error-code-connectionauthorizationfailed-on-power-automate-flow-run)
@@ -170,25 +170,25 @@ Example error:
170170
171171
### Cause
172172

173-
Power App and Power Automate flow metadata must always be synchronized. When changes are made to a Power Automate flow, the app maker must edit the apps that use the flow to remove or re-add the changed flow.
173+
Power App and Power Automate flow metadata must always be synchronized. When changes are made to a Power Automate flow, the app maker must edit the apps that use the flow to remove or readd the changed flow.
174174

175-
For apps or flows included in a solution, an app may successfully invoke the flow in the source environment but fail in the target environment with this error message:
175+
For apps or flows included in a solution, an app might successfully invoke the flow in the source environment but fail in the target environment with this error message:
176176

177177
> Connection not configured for this service.
178178
179-
This occurs when the flow in the target environment has changes that are not present in the source environment, leading to mismatched connection references or metadata.
179+
This error occurs when the flow in the target environment has changes that aren't present in the source environment, leading to mismatched connection references or metadata.
180180

181181
### Mitigation steps
182182

183183
> [!NOTE]
184-
> Make sure to perform the following steps in the source or development environment and update the solution. After updating the solution in the source or development environment, export and import it into all target or production environments.
184+
> 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.
185185
186-
1. In the source environment, edit the app. Remove and then re-add the flows to the app. Save and publish the changes.
186+
1. In the source environment, edit the app. Remove and then readd the flows to the app. Save and publish the changes.
187187
2. In the target environment, remove all unmanaged solution layers from the app and flow.
188188
3. Export the solution and import it into the target environment.
189189

190190
> [!NOTE]
191-
> Ensure that neither the flow nor the app has unmanaged solution layers, as these can interfere with connection references and cause integration issues.
191+
> Ensure that both the flow and the app have no unmanaged solution layers. Unmanaged solution layers can interfere with connection references and cause integration issues.
192192
193193
## Error code "NotAllowedConnectionReference" on Power Automate flow run
194194

@@ -205,48 +205,48 @@ Example error:
205205
206206
### Cause
207207

208-
This error occurs when the app's flow metadata expects a specific connection reference (such as a SQL connection) during installation, but the flow's current metadata does not match this expectation.
208+
This error occurs when the app's flow metadata expects a specific connection reference (such as a SQL connection) during installation. If flow's current metadata doesn't match this expectation, an error occurs.
209209

210210
### Mitigation steps
211211

212212
> [!NOTE]
213-
> Make sure to perform the following steps in the source or development environment and update the solution. After updating the solution in the source or development environment, export and import it into all target or production environments.
213+
> 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.
214214
215215
#### Mitigation option 1
216216

217217
Reset the Power Automate flows in the app:
218218

219-
1. In the source environment, edit the app. Remove and then re-add the Power Automate flows to the app. Save and publish the changes.
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.
220220
2. In the target environment, remove all unmanaged solution layers from the app and Power Automate flow.
221221
3. Export the solution and import it into the target environment.
222222

223223
> [!NOTE]
224-
> Ensure that neither the flow nor the app has unmanaged solution layers, as these can interfere with connection references and cause integration issues.
224+
> Ensure that both the flow and the app have no unmanaged solution layers. Unmanaged solution layers can interfere with connection references and cause integration issues.
225225
226226
#### Mitigation option 2
227227

228228
Change the connection from **Embedded** to **Invoker**:
229229

230-
1. Navigate to the Power Automate flow portal to edit and update the flow settings.
230+
1. To edit and update the flow settings, navigate to the Power Automate flow portal.
231231
2. On the flow details page, in the **Run only users** section, select **Edit**.
232232
3. To update the flow connection source to **Invoker**, select **Provided by run-only user** and save.
233233
4. Verify by triggering the flow. You should now find the "install flow network" calls to be successful.
234234

235235
## Failures caused by Power Automate flow updates
236236

237-
When flow updates cause integration problems, you might see these additional symptoms that can help you identify and troubleshoot the specific issue.
237+
When flow updates cause integration problems, you might see these other symptoms that can help you identify and troubleshoot the specific issue.
238238

239239
### Symptom 1
240240

241-
When new input is added to a Power Automate flow but the Power App is not updated, the flow may fail with an error message that resembles the following:
241+
When new input is added to a Power Automate flow but the Power App isn't updated, the flow might fail. If the flow fails, it returns an error message that resembles the following example:
242242

243243
> Unable to process template language expressions in action 'Send_me_a_mobile_notification' inputs at line '1' and column '1900': 'The template language expression 'triggerBody()['Sendmeamobilenotification_Text']' cannot be evaluated because property 'Sendmeamobilenotification_Text' cannot be selected. Please see `https://aka.ms/logicexpressions` for usage details.'.
244244
245245
:::image type="content" source="media/best-practices-when-updating-a-flow/flow-fail-error-message.png" alt-text="Screenshot of the error message when adding the new input to the flow without updating the Power App." lightbox="media/best-practices-when-updating-a-flow/flow-fail-error-message.png":::
246246

247247
### Symptom 2
248248

249-
If the connections required to run a Power Automate flow change, you may receive an error.
249+
If the connections required to run a Power Automate flow change, you might receive an error.
250250

251251
In Power Apps, it might look like:
252252

@@ -260,7 +260,7 @@ In Power Automate flow, it might look like:
260260

261261
### Symptom 3
262262

263-
If a response output is removed, Power Apps will treat the value as blank and the app will behave unexpectedly.
263+
If a response output is removed, Power Apps treats the value as blank and the app behaves unexpectedly.
264264

265265
### Cause
266266

@@ -284,7 +284,7 @@ Types of changes most likely to break a Power Apps ability to call a Power Autom
284284

285285
:::image type="content" source="media/best-practices-when-updating-a-flow/remove-output.png" alt-text="Screenshot of removing an output from a Respond to Power Apps action.":::
286286

287-
Other changes to the inputs or outputs may not break the integration between Power Apps and the Power Automate flow, but the app must be updated to recognize and utilize the new or modified inputs and outputs.
287+
Other changes to the inputs or outputs might not break the integration between Power Apps and the Power Automate flow. However, the app must be updated to recognize and utilize new or modified inputs and outputs.
288288

289289
### Resolution
290290

@@ -321,8 +321,8 @@ Follow these steps:
321321

322322
:::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.":::
323323

324-
This process updates your app to use the flow's new configuration. Since the app isn't published yet, no users are affected by your changes.
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.
325325

326326
## References
327327

328-
[Create, add and edit flows using Power Apps Studio](/power-apps/maker/canvas-apps/working-with-flows)
328+
- [Use Power Automate pane](/power-apps/maker/canvas-apps/working-with-flows)

0 commit comments

Comments
 (0)