---
title: "Avoid DML statements in Flow-Loops."
description: "Impact Area Manageability   Severity High   Affected Element Flow   ## Rule ID **SF-AVOID-DML-IN-LOOPS** ## Impact Potential SOQL limit exception error ## Remediation Use bulkification wherever it can be applied or refactor the flow. **Time to fix** 30 min"
url: "https://community-staging.qualityclouds.com/qcdocs/qc/salesforce-rules/avoid-dml-statement-in-flow-loops/"
updated: "2025-03-21"
category: Salesforce Rules
---

# Avoid DML statements in Flow-Loops.

Impact Area

Manageability

 

           Severity

High

 

           Affected Element

Flow

 

## Rule ID

**SF-AVOID-DML-IN-LOOPS**

## Impact

Potential SOQL limit exception error

## Remediation

Use bulkification wherever it can be applied or refactor the flow.

**Time to fix**

30 min
