Eight Flows Fire on One Case Status Change: Untangling Power Automate Loops, Duplicates and Record Locks

Urgent measures first, then a trigger inventory per table, loop detection with guard columns and run-as checks, and consolidation into fewer flows or a plug-in.

When eight Power Automate flows fire on one Dynamics 365 case status change, stop the damage first. Narrow every Dataverse trigger with Select columns and Filter rows, add trigger conditions so each flow fires only for the status change it handles, turn on concurrency control where one flow must not run twice in parallel on the same case, and turn off duplicate flows instead of deleting them. Then map the triggers per table: every flow, classic workflow and plug-in step on the case, by message and column. Find loops, where a flow updates the row that triggers it, and break them with guard columns and run-as or modified-by checks. Finally consolidate into fewer flows or one plug-in.

Why do flows that fire on one case status change cause loops, duplicates and record locks?

Because each flow is a separate subscription to the same event, and none of them knows about the others. When a case status changes, every flow whose trigger matches starts its own run, asynchronously, after the save is committed. If those flows each update the case, every update is a new modification that can match the triggers again. Eight flows writing back to the same row, plus plug-in steps on the same message, means many writers on one record within seconds.

Three symptoms follow. Loops: a flow updates the row that triggered it, or two flows trigger each other. Duplicates: the same flow runs twice for one change, or two flows do the same job, so notes, emails or child records appear twice. Record locks: several writers update the same case, or the same parent account, at the same moment, and Dataverse reports lock waits, deadlocks or SQL timeouts. Action retries then repeat the update, which adds more writers rather than fewer.

What should you do first when flows on the case table are looping right now?

Narrow and serialise before you redesign. These measures are reversible and do not need a release. If data is being corrupted and plug-ins are involved, follow the containment order on diagnosing intermittent Dynamics 365 failures: export evidence, deactivate the suspect step, pause dependent work.

MeasureWhereWhat it stops
Select columnsDataverse trigger, advanced optionsRuns on updates to columns the flow does not care about
Filter rowsDataverse trigger, an OData filter such as statuscode eq followed by the valueRuns for statuses the flow does not handle
Trigger conditionsTrigger settings, an expression that must be trueRuns caused by the automation account, or rows already processed
Concurrency controlTrigger settings, degree of parallelismTwo runs of the same flow working on the same case at once
Turn off duplicatesFlow details, Turn offTwo flows doing the same job; keep them off, not deleted, for reference

How do Select columns, Filter rows and trigger conditions stop flows firing on every save?

They work at different points, so use all three. Select columns limits a modified trigger to updates that include the listed columns, for example statuscode only. Check the behaviour on your version, but treat a column as modified whenever it is in the update request, even if its value did not change, so a flow that writes the same status back can still fire triggers that select statuscode. Filter rows is an OData filter evaluated on the row, for example a status value or a case type, and stops runs for rows that do not match.

Trigger conditions are expressions in the trigger settings, and the run only starts when they are true. Two are common. A modified-by check, such as an expression that compares triggerOutputs()?['body/_modifiedby_value'] with the ID of the automation account and skips the run when they match. A guard check, which skips the run when a guard column shows the row was already processed for this status. Filter rows looks at the row as it is now, not at the value before the change, so a guard column is the usual way to tell a real transition from a repeated write.

When does concurrency control help, and when does it not?

Concurrency control on the trigger limits how many runs of that one flow execute at the same time. Setting the degree of parallelism to one makes runs of that flow wait for each other, which stops one flow processing the same case twice at once and is often the quickest fix for duplicates from a single flow.

It does not coordinate different flows. Eight flows with concurrency set to one each can still run at the same moment on the same case, so it does not cure record locks caused by many flows. It also slows throughput, because every change to every case now queues behind the previous run. Check the current Power Automate guidance before enabling it on a production flow, as concurrency control may not be switchable back off once set; test the change on a copy of the flow first.

How do you map every trigger on the case table?

Build one inventory per table and event, because the problem is the combination, not any single flow. Include everything that reacts to a change on the case, and the parent tables the case writes to, such as account or contact.

Column in the inventoryWhat to recordWhere to find it
AutomationName, type (cloud flow, classic workflow, business rule, plug-in step) and ownerSolutions, the Power Automate portal, Processes, the Plugin Registration Tool
TriggerTable, message or change type, selected columns, filter rows, trigger conditionsThe trigger card; for plug-ins the step registration
TimingSynchronous or asynchronous, stage and execution order for plug-insStep registration; cloud flows always run after the save
IdentityRun as setting, connection owner, the account that appears as modified byTrigger advanced options and connection references
WritesEvery table and column the automation updates or createsThe flow actions or the plug-in code
Purpose and ownerWhat business rule it implements and who asked for itThe people who built it, and the change log if there is one
  • Look outside solutions too: flows that individual users created outside any solution are easy to miss and are often the duplicates.
  • Cloud flows in solutions are stored as rows in the Dataverse workflow table, alongside classic workflows, which helps when there are many; check the category values on your version.
  • Status changes can arrive as more than one message: an update to status columns, and on cases the resolve and cancel actions, which plug-ins may see as separate messages. Check which messages each plug-in step is registered on.
  • For plug-in steps, record stage and execution order as described on diagnosing intermittent failures, which covers plug-in ordering and races in depth.

How do you detect a flow that loops on the record that triggers it?

Look for the pattern in the evidence, then confirm it in the inventory. In run history, the same case ID appears in runs seconds apart with no user change in between. In audit history, the case shows modifications by the automation account in a repeating sequence, sometimes the same value written again and again. In the inventory, a flow writes a column that its own trigger, or another flow's trigger, selects.

  • Guard columns: add a column such as the last status processed by automation. The flow sets it in the same update as its other changes, and its trigger condition skips the run when the guard already matches the current status.
  • Modified-by checks: run automation under a dedicated account or application user, so the modified-by value identifies automation, and add a trigger condition that skips changes made by it. Use it only where no automation needs to react to another automation.
  • Run as: the trigger Run as setting decides whose identity the flow uses for its Dataverse actions. With modifying user, the flow update is attributed to the person who changed the case, which defeats a modified-by check. Check the setting on every flow in the inventory.
  • Write only what changed: compare the current value before updating, and do not write the status or other selected columns back unless the value really changes.
  • Do not rely on the platform to stop the loop for you. Turn the flow off while you fix it if it is burning runs or writing bad data.

How do you stop record locks and duplicate updates on the same case?

Reduce the number of writers per row and per moment. Record locks are a symptom of many updates arriving at the same row, or at the same parent row, at once.

  • One owner per column: decide which single flow or plug-in sets each column, and remove the other writers.
  • One update per run: combine the changes a flow makes to the case into one Update a row action instead of several in sequence.
  • Keep parents quiet: if several flows update the parent account from every case change, for example counters or last activity dates, move that to one flow, a rollup or a scheduled job.
  • Make actions safe to repeat: before creating a note, email or child record, check whether it already exists for this status change, so a retry or duplicate run does no harm.
  • Review retry policies: the default retry on actions repeats failed updates, which is right for transient errors but adds load when the failure is a lock caused by the flows themselves.
  • Plug-ins in the same transaction hold locks for the length of the synchronous chain. Shortening that chain is covered on diagnosing intermittent failures; high-volume flow redesign is covered on Power Automate 429 throttling at scale.

Should you consolidate into fewer flows or move the logic into a plug-in?

Consolidate in either case; choose the target by what the logic needs.

TargetFits whenWatch out for
One orchestrating flow per table and event, with child flowsThe steps call other systems, send messages, wait for approvals or can run seconds after the saveKeeping the trigger narrow and the orchestrator readable; child flows need a solution
One plug-in stepThe values must be set or validated inside the save, or the order of updates must be guaranteedStage, execution order and the two-minute limit; plug-ins are code with a release process
Configuration instead of automationA flow only sets a default, calculates a value or enforces a field ruleBusiness rules, calculated and rollup columns, or formula columns may replace a flow entirely
Keep separate flowsFlows do unrelated jobs, write no shared columns and cannot trigger each otherSeparate flows that pass the inventory checks are fine; the number alone is not the problem

What are the steps to untangle flows that fire on one status change?

Work from containment to design, and test each change against concurrent edits in a sandbox copy of production before it reaches the live case table.

  • Preserve the evidence: Export the run history of the affected flows and the audit history of a few affected cases before changing anything, so you can see which flow wrote which value and in what order.
  • Narrow every trigger: On each Dataverse trigger set Select columns to the columns the flow really needs, add Filter rows for the status values it handles, and add trigger conditions that skip updates made by the automation account.
  • Turn off duplicates and serialise: Turn off flows that do the same job, keeping them for reference, and turn on concurrency control with a degree of parallelism of one where a flow must not process the same case twice at once.
  • Map the triggers per table: List every cloud flow, classic workflow, business rule and plug-in step on the case table and its parents, with message, columns, stage or mode, run-as identity, and the columns each one writes.
  • Find and break loops: Mark every automation that writes a column another one listens to, then break each loop with a guard column, a modified-by check or a change to which columns are written.
  • Give every column one writer: Decide which single flow or plug-in owns each column, remove the other writers, and combine several updates to the same row into one update.
  • Consolidate: Replace the separate flows for one table and event with one orchestrating flow and child flows, or move logic that must run inside the save into a plug-in.
  • Test under concurrency and monitor: In a sandbox copy, change many cases at once and the same case twice in quick succession, check that each flow runs once per real change, then monitor run history and errors after release.

What does Solzet deliver for untangling Power Automate loops in Dynamics 365?

Solzet's senior Power Platform and Dataverse developers take the case table, or any table where automations collide, from containment to a clean design: trigger narrowing and concurrency settings on the day, the trigger inventory per table and message, loop analysis with guard columns and run-as checks, one owner per column, and consolidation into fewer flows, a plug-in or configuration, tested under concurrent load in a sandbox copy and released through solutions. Our own people do the work, and we document it so your team can keep it tidy. The service line is Power Automate consulting; plug-in work sits with Dynamics 365 consulting.

When the automation estate on a licensed platform has become the main cost, a custom CRM is an alternative worth weighing. We recommend the right solution: Dynamics 365 (Customer Engagement, Business Central or Finance and Operations), Power Platform, or a custom-built CRM. One team for CRM, ERP and the integration between them.

What do people ask us?

Why do several Power Automate flows fire on one Dynamics 365 case status change?

Each flow with a matching Dataverse trigger starts its own run after the save. Without Select columns, Filter rows and trigger conditions, every flow on the case table can fire on every update.

How do I stop a flow from triggering itself when it updates the same row?

Use a guard column the flow sets in its own update and checks in a trigger condition, or skip changes made by the automation account with a modified-by check. Avoid writing back columns the trigger selects.

Does concurrency control stop record locks?

Only for runs of the same flow. Setting the degree of parallelism to one serialises that flow, but different flows still run at the same time, so locks from many flows need fewer writers per row.

Does Select columns stop the flow when the value did not change?

Not reliably. Treat a column as modified whenever it is in the update request, even with the same value, and check the behaviour on your version. Guard columns tell a real transition from a repeated write.

Should we delete duplicate flows?

Turn them off first and keep them for reference until the inventory confirms nothing depends on them. Delete them later through the solution, once the consolidated design is live.

When should flow logic move into a plug-in?

When values must be set or validated inside the save, or the order of updates must be guaranteed. Calls to other systems, messages and approvals usually stay in a flow.

Can Solzet untangle the flows on our case table?

Yes. Our senior developers contain the loops, build the trigger inventory, break loops with guard columns and run-as checks, and consolidate into fewer flows or a plug-in, tested under concurrent load.

Which solution is right for your business?

Tell us what you need. A senior consultant replies within one business day with a recommendation (Customer Engagement, Business Central, Finance and Operations, Power Platform or a custom-built CRM), not a sales script.