Concurrency Control in Power Automate: Preventing Duplicate Runs
In this series: Power Automate gotchas
The recurrence is every five minutes. The run that started at 09:00 is still listing SharePoint rows at 09:05. The next recurrence starts anyway. Both runs read "Pending," both write "Done," both post the invoice. You now have two postings and a vendor who will not ignore the second one. Concurrency control is the setting that would have queued the 09:05 run behind the 09:00 run. It is off unless you turn it on.
Trigger-based flows behave the same way. With concurrency control off, the platform fires every triggered run as it arrives, in parallel, with no upper bound on overlap. When you turn concurrency control on, the default Degree of Parallelism is 20, configurable from 1 up to 50. Stateless notifications can live with that. Anything that reads, transforms, and writes a shared row cannot.
Three knobs, three different races
People toggle one setting and still double-write. There are three places parallelism hides.
Trigger concurrency caps how many runs of the flow overlap. Open the trigger (Recurrence, When an item is created, When a row is added). Settings. Concurrency Control On. Degree of Parallelism 1. Extra triggers queue. One run at a time.
Apply to each concurrency caps how many items inside a run overlap. Settings on the loop. On. Degree of Parallelism 1 for sequential, higher if each item is independent. A trigger DoP of 1 with a loop DoP of 20 still writes twenty rows at once. That is often what you want. It is not "the flow is single-threaded."
Split on turns one incoming array into one run per item. Array triggers (SharePoint on a batch, Service Bus, HTTP with a JSON array) often split the payload. Trigger concurrency then applies to those split runs, not to the original batch. If you need "process this array as one unit," turn Split on off. If you need "process each item, but never two at once," leave Split on enabled and set Degree of Parallelism to 1.
These are different knobs. Setting one and not the other is the usual reason a flow still double-writes after "we turned concurrency on."
| Scenario | Trigger concurrency | Loop concurrency | Split on |
|---|---|---|---|
| Recurrence that posts invoices from a queue list | 1 | 1 | n/a |
| Item-created, each item independent mail | Off, or DoP 20 | n/a or 10–20 | On if the trigger splits |
| Shared counter or status flip on one row | 1 | 1 | Off if the payload is a batch you must treat as one |
| Fan-out HTTP calls with no shared write | Default | 20–50 | On |
What the queue actually does
When concurrency is set to 1 and multiple triggers fire, the extra runs enter a queue. The waiting-runs limit is configurable via the trigger's settings — the range Microsoft documents is roughly 10 plus the Degree of Parallelism, up to 100. The default is on the small end of that range, so don't assume you have headroom for thousands of waiting runs.
Runs that overflow the queue can still be retried by the calling connector — retry semantics depend on the connector. Monitor queued runs in run history. A recurrence that is always queued takes longer than its interval: shorten the work, lengthen the interval, or move the heavy part to a child flow.
A waiting run is a slot in Power Automate, not a lock on your data. Concurrency control stops two runs of this flow. It does not stop a second flow, a resubmit, or a user who clicks the same item. Put a status on the row if you need one worker for the list.
Status fields still matter
Even with DoP 1, design the work as if a run can happen twice. Resubmit exists. A skipped failed run gets replayed. The connector retries.
Filter rows: status eq 'Pending'
Update: status = 'Processing', row version / etag if the connector has one
... do the work ...
Update: status = 'Done'
Two runs that both pass the filter before either writes Processing will both process, even with trigger concurrency 1, if they are two different flows or a resubmit overlapping a retry. The status write is the lock the data source understands. The flow setting is the lock the platform understands. Use both when the write is money, inventory, or a posting.
Idempotent operations help the rest of the way: posting with an idempotency key, skipping a row whose last-processed timestamp is newer than the trigger window, refusing to send mail when a "notified" flag is already set.
For Dataverse, Filter rows plus a status column is cheaper than letting every create start a run and then Condition-ing out of it. A trigger condition that says "only Pending" is even cheaper: a false condition does not start a run. Use that when missing or already-processed rows should be silence, not a skipped branch in run history.
When parallelism is the right call
Do not set everything to 1 by reflex. A flow that sends a unique Teams ping per new row, and never writes back, can run unbounded. A flow that calls an API with a published rate limit should set loop DoP to something under that limit, not to 1 unless the API is a single shared counter.
Apply to each at 50 is how you blow a connector's throttling on the first large list. Start at 5 for writes, watch 429s, then raise. Trigger DoP above 1 is for independent items that do not share a row. If two items can contend for the same parent record, DoP 1 on the trigger or a partition key in the source (one flow per queue, one list per legal entity) is cheaper than debugging the race.
Child flows inherit none of the parent's loop setting. Each child call is its own run. If the parent loops at 20 and the child has trigger concurrency 1, you have queued children behind one worker. Set both on purpose.
Settings checklist
- Recurrence interval versus typical run duration. If duration is greater than interval, turn trigger concurrency on and set DoP to 1, or you have overlapping recurrences by construction.
- Trigger Settings → Concurrency Control. For shared writes: On, DoP 1. For independent notifications: leave off, or set an explicit DoP you can explain.
- Trigger Settings → Split on. Off when the array is one unit of work. On plus DoP 1 when each element is one unit and must not overlap.
- Each Apply to each → Settings → Concurrency Control. Match it to whether items share a write.
- Waiting-runs limit. If you regularly sit near the cap, you are producing work faster than you finish it. Fix the duration, not the cap, unless you have measured that the overflow retries are acceptable.
- A status (or etag) on the source row for anything you cannot run twice.
- One test: two manual runs at the same moment, or a recurrence shorter than the sleep you put in the flow. Count the side effects. One is a pass. Two is the setting you missed.
Parallel execution is an optimization. Reach for it when the items do not share a row and the connector can take the rate. For a scheduled posting job, DoP 1 on the trigger is the default that keeps the books from doubling.
Keep reading
Power Platform September 2026 Update: The App-Builder Skill, Agent Plugins, and the Refreshed Model-Driven UI
What matters in Microsoft's September 2026 Power Platform feature update: the model app-builder skill goes GA, the canvas authoring agent plugin goes GA, generative pages embed in forms and reach connectors, model-driven header refresh is GA with display density in preview, and Power Automate gets server-side search.
Managing Environment Variables Across Dev, Test, and Prod in Power Platform
How to use environment variables, connection references, and solution-aware configuration for clean ALM in Power Platform.
Perform a Changeset Request: Two Add a New Row Actions Are Two Transactions
Only Add, Update, and Delete belong in a Dataverse changeset. List rows is not in that transaction, and the next Add a new row is its own commit.
Add a New Row: The Lookup Is accounts(guid), Not the GUID
Add a new row binds lookups as entityset(guid). A raw GUID or name is not a bind.
Filter Rows: The Lookup GUID Is _parentcustomerid_value
Filter rows is Dataverse OData. Lookups filter on _logicalname_value, not the name. Filter array runs after the download, and @equals does not belong in that box.
Get a Row by ID: Missing Fails the Run, Empty List Rows Does Not
Get a row by ID fails the run when the GUID is missing. List rows with zero matches succeeds. Look up the business key and branch on empty.
Newsletter
New posts, straight to your inbox
One email when a new post goes up. Double opt-in, unsubscribe anytime. Not a daily digest.
Comments
- No comments yet. Be the first.