A Power Automate flow can complete without an action error and still associate the wrong value with a request. If an Apply to each loop runs items in parallel and repeatedly changes a shared variable, one iteration may read a value another iteration has just replaced. Check data ownership before increasing the concurrency of a customer-facing batch.

Original conceptual illustration, not a vendor screenshot or an actual ITZ client installation. Technical sources reviewed on 2 December 2026.

Recognise the shared-variable pattern

Imagine a hypothetical distributor processing service requests. Each iteration sets a variable named CurrentCustomer, looks up a reference, then builds a notification. With overlapping iterations, customer A’s iteration could reach the notification after customer B has replaced that shared value. The specific outcome depends on action timing and expressions; a clean test with one request cannot establish that the batch is safe.

Microsoft documents that cloud-flow variables are global within their flow and persist across loop iterations. Its guidance is to keep iterations sequential when predictable loop-variable results matter. A variable is not automatically a private copy for each parallel item.

Through ITZ’s Microsoft 365 and Power Automate workflow service, you can request a review of loop data handling with the flow outline, affected record fields and examples that have been safely redacted.

Trace every value used in a write or message

  • Identify variables that are set, incremented or appended inside the loop. Include variables read much later in the same iteration.
  • For every email, approval or record update, trace its destination identifier and business values back to the source item.
  • Check nested loops carefully. A convenient dynamic-content selection may refer to a different loop’s current item.
  • Distinguish loop concurrency from trigger concurrency. Separate flow runs overlapping is a different problem from iterations sharing values inside one run.

Do not treat an action’s green success indicator as proof that the customer, amount and request identifier stayed together. It describes execution status, not the correctness of that association.

Choose a safe processing design

If the algorithm genuinely accumulates or mutates shared state, keep the loop sequential while you review it. That may increase elapsed time, so test whether the batch still fits its business deadline. Reducing concurrency is a diagnostic and containment step, not a substitute for understanding the data path.

Where each item can be independent, use the current item’s fields and action outputs associated with that iteration instead of a scratch variable that every iteration overwrites. A Compose action inside the loop can make an intermediate value easier to inspect, but only if downstream references remain in the correct iteration and it does not read shared mutable state itself. Have the maker validate the actual expressions in the designer.

Microsoft’s concurrency guidance recommends parallel processing for independent items and notes that higher concurrency may add overhead rather than improve speed. Endpoint limits and dependencies still matter. Removing a shared variable does not make concurrent writes to the same workbook safe; see the separate Excel concurrent-write review.

Test association, order and failure behaviour

  1. Clone or otherwise isolate the flow using your supported release process. Replace outbound recipients and write destinations with controlled test endpoints.
  2. Create synthetic requests with unmistakably different identifiers and values. Include blanks and repeated customer names with different request IDs.
  3. Introduce different processing times using safe test steps so items overlap. Compare each output’s complete field set with its originating request.
  4. Test a failure and retry. Check that recovery does not pick up a later item’s values or duplicate a completed business action.
  5. Record whether output order matters. Parallel completion order should not be assumed to match input order; use explicit identifiers for reconciliation.

For a batch summary, consider the separate single-email digest guidance. Avoid repairing live records by blindly rerunning the entire batch.

Review your flow loop data handling

Discuss the fields, concurrency settings and test evidence with ITZ’s Power Automate service. Bring a redacted example of an incorrect association and the intended result so the review can define a safe correction and validation scope.

Review Your Flow Loop Data Handling