Salesforce governor limits cap the database work and processing a transaction can consume. Admins need to understand the whole save operation, including flows and Apex, rather than count elements on one canvas. Start with the error category, trace the automation involved, and test the proposed fix with realistic bulk changes.
Salesforce governor limits in admin terms
A transaction is a unit of work that succeeds or rolls back together. Several pieces of automation can participate in that unit. A flow can therefore reach a limit even when its own design looks small, because earlier automation has already consumed part of the available capacity.
For synchronous work, three figures help translate an error into a design review: 100 SOQL queries, 150 DML statements, and 10 seconds of Salesforce server CPU time. These are different measures. A query retrieves data; a DML statement creates, updates, or deletes data; CPU measures processing. Do not use elapsed browser time as a substitute for CPU consumption.
Get Records is where query load becomes visible. Create Records, Update Records and Delete Records are where database writes accumulate. Some actions invoke Apex with additional work hidden behind the flow canvas. Include those actions in the investigation rather than assuming their visible size represents their resource use.
Keep transaction limits separate from questions about storage, API usage, or licensing. An automation incident needs the limit named in its error, the operation that triggered it, and the transaction context. Changing an unrelated allowance is not a reasoned fix. Place this review within your wider Salesforce configuration and customization decisions.
Map the save before changing the failing flow
Take one failed business action, such as changing an opportunity stage. Write down its starting record, the fields changed, the automation it enters, the related records it touches, and any further saves those changes cause. Treat this as an investigation worksheet rather than an assumed execution sequence.
For a proposed sales automation, ask whether a stage change needs to update the opportunity, create follow-up tasks, update the account, and recalculate related information immediately. Give each action a business reason. The sales workflow design should establish which outcomes the salesperson needs before continuing.
Look for circular dependencies. For example, trace whether an opportunity update changes an account and whether account automation then revisits opportunities. Record the field changes and entry conditions on both sides. Do not remove a branch until you understand which business requirement it serves.
The element named in an error is the point where execution failed. It does not establish which automation consumed the largest share of resources. Ask the developer or package owner to account for work outside your flow when the transaction crosses those boundaries.
Remove repeated database work from loops
A loop makes the cost of its contents depend on collection size. Consider an illustrative design that retrieves related tasks separately for each opportunity and updates each task inside a nested loop. A test opportunity with few tasks gives little evidence about how that design behaves during a larger update.
Flow bulkification can group operations when multiple interviews reach the same element. It does not automatically combine repeated database operations inside one interview’s loop. A Create Records element inside a loop still performs a write operation on each iteration. Automatic grouping is therefore not a substitute for reviewing loop contents.
- Identify the records the business rule actually needs before collecting data.
- Retrieve the required collection before the loop where the relationships and filters allow it.
- Use the loop to prepare changes and assemble a collection for saving.
- Place the collection write after the loop, then check the resulting records.
- Inspect invoked actions for further queries or writes that remain inside repeated work.
Moving a write outside a loop does not prove that the complete design can handle the workload. The saved records may trigger additional automation. Test both resource consumption and business results, including whether the revised collection contains the intended records without duplicate tasks or unrelated changes.
When flows, Apex, and packages have unclear owners, name an owner for each component and map the transaction boundaries. Keep the reproducible failure and acceptance evidence with the revised design.
Reduce unnecessary entry and repeated saves
Review whether an automation needs to run on the change being made. A rule intended for a transition into an approved state should have an explicit decision about subsequent edits while the record remains approved. Write examples for entering that state, leaving it, and editing an unrelated field.
Before-save record-triggered flows can change fields on the triggering record without a separate Update Records element for those changes. Consider that approach for field derivation on the same record. Related-record creation or updates require a different design. Choose according to the required action rather than moving automation simply to shorten the canvas.
Propose a field ownership list where several automations set the same value. Record which rule decides the value and which consumers read it. Trace disagreements that cause one automation to overwrite another’s result. A clear owner makes both testing and incident diagnosis easier.
For service operations, separate the information an agent needs during a save from follow-up work that can tolerate delay. Agree on the consequences of delayed or failed follow-up before changing transaction boundaries. Use service workflow design to make those business decisions visible.
Collect evidence that distinguishes the failure
Record the exact error, timestamp, affected record identifiers, initiating action, flow version, and whether the failure followed a manual edit or a bulk operation. Preserve a small reproducible example without copying sensitive record contents into general incident notes.
- Query limit: investigate repeated lookups and invoked actions that retrieve records.
- DML statement limit: investigate writes inside loops and chains of related updates.
- CPU limit: investigate repeated processing, large collections, and the combined automation in the transaction.
For CPU diagnosis, review debug logs with someone who can interpret the complete execution. Salesforce lists View All Data for viewing, retaining, and deleting debug logs. Verify the permission needed to create or change trace flags separately before assigning it. Flow Builder changes require Manage Flow. Have the authorized administrator perform the specific action rather than broadening access for convenience.
A governor-limit failure rolls back the transaction even when the failing element has a fault connector. Do not design the recovery plan around that connector saving the failed business changes. First establish what committed, what did not, and whether any external action needs separate reconciliation.
Test the workload and document the operating boundary
Build a test set around business variation: a record with no related items, one with a dense relationship history, a mixed collection that follows different branches, and repeated submission of the same input. Define expected record changes before execution so that a successful run cannot hide incorrect results.
Reproduce the intended bulk operation in a suitable test environment. Include relevant active automation and representative relationships. A single-record debug run is evidence about that path; it does not establish the behavior of a production import. Coordinate import testing with data quality and migration planning so data shape and automation assumptions are reviewed together.
Compare resource evidence before and after the change using equivalent inputs. Record the workload tested, remaining concerns, recovery owner, and the condition that should stop a rollout. If a smaller import batch is proposed as temporary containment, label it that way and retain the underlying design issue in the change record.
For help planning this work, see Salesforce implementation.
Questions admins ask before approving a limits fix
What should an incident handoff contain?
Include the reproducible starting action, exact error text, relevant version identifiers, a sanitized sample, and the business impact. State what you observed separately from your suspected cause. This gives the next investigator a starting point without turning a hypothesis into an accepted diagnosis.
Should a managed package be disabled during investigation?
Ask the package owner to plan an isolated test and identify the processes that depend on it. Disabling a package component as an experiment needs an agreed recovery path and business coverage. Preserve the original configuration so comparisons remain meaningful.
Who should approve work moving outside the immediate save?
The process owner should accept the delay and failure consequences, while the technical owner reviews transaction design and recovery. Write down what users see while follow-up is incomplete and who resolves exceptions. Approval should cover business behavior as well as resource consumption.
When should the team close the remediation?
Close it when representative tests meet the agreed outcomes, the production change has an owner, and recovery instructions are usable. Keep the test evidence with the automation change. Revisit the assessment when a later integration or workflow change materially expands the workload.