An error code catalog is one shared list that maps each failure code from your Salesforce integrations to a single cause, an owner and a next step. When a message fails, support staff, admins and the team that runs the other system read the same code and reach the same diagnosis.
Decide what the catalog covers
Start with the integrations that can fail in ways someone has to act on. Many teams begin with the flows that write records into Salesforce from another system, the flows that read records out, and any scheduled job that moves data between them. Give each integration a short name, because that name becomes the first segment of each code and keeps a failure in the order sync from being mistaken for one in the billing sync.
Keep the first version small. A short catalog that support staff actually use is worth more than a long one nobody opens. Add a code after a real failure has needed a decision, and retire codes that stop appearing in the logs.
Design a code format that reads at a glance
A reader should learn three things from a code before opening its entry: which integration failed, what kind of failure it was, and how serious it is. A string such as ORD-AUTH-E01 carries all three. The exact pattern matters less than applying it the same way across the whole catalog.
Fix the segments and their meaning
- Integration prefix: a short code for the flow or system, such as ORD for order sync.
- Failure category: a fixed set, such as AUTH, DATA, TIMEOUT, CONFIG or RATE.
- Severity letter: E when the record did not complete, W when it completed with a gap the owner must review.
- Sequence number: two digits, not reused once a code is retired.
Keep the category list short
Five to eight categories cover the usual run of integration failures. When someone proposes a new category, read the cause first and check whether an existing category fits. Two categories that a support agent would treat the same way should become one.
Write each entry with the same fields
Each entry uses the same fields in the same order. When fields are optional, entries drift apart, and agents learn to skim past the parts that vary. Use the list below as the template at the top of the register, so new entries start from the same fields.
- Code and integration name.
- Plain-language cause, written as what happened to the record rather than what the code path did.
- The system, flow or job that returned the failure.
- The exact message text, copied from a real failure as the tool or log displays it.
- The team that acts first.
- The first check to run, in one sentence.
- Whether a retry is safe, and the condition that must be true before retrying.
- The escalation route and the details to send with it.
- The date the entry was last checked against a real failure.
Copy message text from a real failure instead of writing it from memory. Support staff often search on the wording they see on screen, so the entry has to match that wording character for character, including capitalization and punctuation. Record status values the way the tool displays them.
Assign ownership by action, not by category
A code without an owner gets posted in a channel and then left alone. Give each entry two owners: the team that resolves the cause and the team that decides the business impact and whether to wait. For an AUTH code, the first owner is usually the administrator who maintains the integration user. For a DATA code, it is often whoever controls the field mapping.
Write the role against each action
Name the role that performs each action, rather than one owner for the whole category. The person who rotates the integration user’s credentials handles the fix for an AUTH code, while the person who edits the mapping handles the fix for a DATA code. Give a support agent the step that is theirs, which is usually the first check and the escalation, not the repair.
If a fix depends on access a person does not hold, record the access needed in the entry. Plan that access with the approach described in permission set design for small teams, so the fixer is not waiting on a request during an outage.
Set retry and escalation rules for each code
The retry rule prevents two costly mistakes: resending a record that already landed in the target system, and retrying a record that will fail the same way again. Read the rule for each code before anyone resubmits anything. Work through these steps in order.
- Check whether the record already exists in the target system with the expected values.
- If the record exists and matches, close the failure as a duplicate and do not resend it.
- If the cause was a temporary condition, such as a timeout, retry once after the owner confirms the other system is responding.
- If the cause is bad data or configuration, fix the source first. Resending unchanged data usually fails again.
- If the owners cannot resolve the cause within the response time they agreed for that code, escalate with the code, the record identifier, the time of the first failure and the integration name.
Codes in the RATE category usually describe volume, not a single broken record, so their retry rule should wait for the volume to drop. Read governor limits for admins before you write that rule, so the owner writes the rule with those limits in view.
Connect DATA codes to validation rules
Some DATA failures come from a rule that rejects a record on purpose. Before changing a mapping to clear the failure, find the rule that fired and confirm whether it is correct. Changing the mapping to get around a rule can push bad data into the system and hide the rule’s intent from the next person. The approach in validation rules without breaking integrations covers how to keep those two changes in step.
Keep the catalog current as integrations change
Integrations change in three common situations: a new flow goes live, a field mapping is edited, or a sandbox is refreshed and its test data shifts. Each change can add a code, retire one, or alter the wording of a message. Tie the catalog review to the change record, so the owner updates the entry in the same ticket as the change rather than in a later clean-up.
Sandbox copies deserve a specific check. A catalog written against a test environment can describe messages that production may not show, and it can miss codes that production traffic is more likely to trigger. Build the comparison into the plan described in sandbox refresh planning, and check the catalog against a fresh sample from production after each refresh.
Keep a review date on the catalog as a whole, separate from the per-entry date. Once a quarter, pull the failures from the logs, check each code that appeared against its entry, and list any failure that had no matching code. Those unmatched failures are the candidates for new entries, and they are the first place to look when support staff report that an entry did not help.
Wording and field names can differ between your org and your integration layer, so confirm each message against your own logs before you publish an entry. Treat any example text in a draft as a placeholder until it matches a real failure.
Roll the catalog out to support staff
Publish the catalog where support staff already work, and run a short exercise before anyone depends on it. Pick a sample of recent failures, have an agent find each code and follow the entry without help, and note each question the agent had to ask. Each question marks a gap in the entry.
- Export a sample of recent failures from the logs and tag each one with the code it should have received.
- Ask a support agent to resolve each failure using the catalog alone.
- Record each point where the agent asked a question the entry should have answered.
- Rewrite those entries and repeat the exercise on a fresh sample.
For help planning this work, see Salesforce implementation.
Questions about building and maintaining the catalog
Who is allowed to add a new code?
One person on the integration team should own the register and accept requests from everyone else. That owner checks that the cause is new rather than a duplicate, assigns the next sequence number and records the entry date. Changes to the register go through the same review as other integration changes.
What if two systems return different codes for one failure?
Keep both codes, mark one as primary, and add a cross-reference line to each entry. Choose the primary by the team that acts first, not by which system logged the failure first. Support staff can then search either code and land on the same first action.
Must the catalog list all possible causes?
No. List the causes you have seen or can reproduce, and add one line for unknown causes that tells the reader what to collect and where to escalate. A shorter list that is accurate is the one support staff trust.
What if no category fits a new failure?
File it under the closest category and mark the entry as provisional, with the cause written as unknown until a real record confirms it. Keep the sequence number assigned, and review provisional entries at the next quarterly check. Avoid inventing a category for a single case, because a category with one code rarely helps support staff.