16 min read
How to map fields, prevent duplicate orders and recover from failed handoffs when a won CRM deal becomes an ERP order, with a go-live checklist.
What a CRM-to-ERP order handoff is and what decides whether it works
An order handoff is the moment a won deal in your CRM becomes a real order in your ERP. The customer, the items, the prices, the terms and the delivery details move across. After that, the ERP can pick, ship and invoice. Accounting then works from the same record.
Three things decide whether this goes well:
Mapping. Every field the ERP needs has a source, and one system owns it.
Duplicate prevention. The handoff checks for an existing customer or order before it creates a new one.
Recovery. When a handoff stops halfway, someone knows, and the order can be resumed without being created twice.
A missing delivery address is a mapping gap. Two orders for one customer is a duplicate problem. An order that reached the ERP but never got its price lines is a recovery problem.
General integration pages describe the goal as a single source of truth, with ERP for financials and CRM for customer details source 1. That split is a good starting point. This guide goes one level down: what travels, what gets checked on the way, and what happens when something breaks.
Where a rules-based workflow fits
A rules-based workflow sits between the two systems. It reads the order information, checks it against what you already hold, and takes the next step under rules you define. That is what TRUSTBYTES | AUTOMATOR does source 2. Where a check is uncertain, the workflow hands the case to a person instead of guessing. Invoice handling works the same way and routes exceptions to a person source 3. Human approvals are part of the defined data flow source 4.
You do not need a workflow tool to get the basics right. A clear field map and documented matching rules are useful starting controls. A tool helps when volume grows and nobody wants to check every order by hand.
To decide where people stay in the loop, see our guide on human approval in AI workflows. To get your records ready first, read how to prepare business information for automation.
Step by step: map the fields an order needs to move
Write down, for every field the ERP needs, where it comes from and which system may change it. Do this before you build or buy anything. The effort depends on your systems, data quality and approval requirements.
1. List what the ERP needs to create an order
Start from the ERP side. Ask what it refuses to accept without. Five groups cover most orders:
Customer. Legal name, account number, billing address, tax or VAT number, contact person.
Items. Product or article numbers, descriptions, quantities, units.
Prices. Unit price, discounts, currency, tax rate.
Terms. Payment terms, delivery terms, quote or contract reference.
Delivery details. Ship-to address, requested date, shipping method, site contact, notes.
2. Name one owner for each field
A field with two owners ends up with two values. Pick one system as the source of truth for each field. The other reads it and never overwrites it.
The ERP owns item numbers, base prices, tax codes and payment terms on file.
The CRM owns the deal, the contact person, the agreed quantities and the delivery wishes.
The customer account number is created in the ERP and written back to the CRM.
3. Decide what happens when a field is missing or differs
For each field, write one rule:
Required. The handoff stops and the order goes to a person.
Defaulted. A named default applies, such as the standard payment terms on the customer record.
Overridable. The deal value wins, but only with approval, such as a discount above the usual limit.
A blank ship-to address is cheaper to stop at the handoff than at the dock.
4. Fix formats before you move data
Agree on units, currency codes, date formats and address structure. A quantity of “2 pallets” in the CRM and “2” pieces in the ERP is a real error, not a cosmetic one.
Hypothetical SME example
This is an illustration, not a client case. A small machinery supplier wins a deal for spare parts. The table shows one possible field map.
Field group | Field | Owner | Moves from CRM to ERP? | Rule if missing |
|---|---|---|---|---|
Customer | Account number | ERP | No, written back to CRM | Match or create after check |
Customer | VAT number | ERP | Used for matching only | Send to person |
Items | Article number | ERP | Yes, selected in CRM from the catalogue | Stop |
Items | Quantity | CRM | Yes | Stop |
Prices | Unit price | ERP | Yes | Stop if it differs from the price list |
Prices | Discount | CRM | Yes | Approval above the agreed limit |
Terms | Payment terms | ERP | Yes, from the customer record | Use the default |
Delivery | Ship-to address | CRM | Yes | Stop |
Delivery | Requested date | CRM | Yes | Use the standard lead time |
The CRM sends what the salesperson knows. The ERP supplies what finance controls. Nothing is typed twice.
Where a rules-based workflow helps with mapping
Once the map is on paper, a workflow can apply it the same way every time. In a hypothetical design, AUTOMATOR reads the won deal, checks each field against your rules and takes the next step under those rules source 2. Orders that fail a rule, such as an unusual discount, go to a person source 3. Which systems it connects to and how fields are written back depend on your setup and the implementation, so confirm that with the team first. Done-for-you implementation is available alongside the software source 2.
Prevent duplicate orders before they are created
A duplicate order happens when the handoff creates something new without first asking whether it already exists. Check before you create. Then send anything uncertain to a person.
1. Choose matching keys
A matching key is a value that identifies the same customer or order in both systems. Pick keys that rarely change and are hard to mistype.
For customers, use in this order:
The ERP customer account number, once it is written back to the CRM.
The VAT or tax number.
Legal name plus billing postcode, as a weaker fallback.
For orders, use a handoff reference that the CRM creates once per won deal. Use a stable key for creation; treat reopened deals as an explicit update or new-order decision, rather than automatically creating a new key. Store it on the ERP order. Define whether a deal may produce one or several orders, and enforce the intended relationship using durable unique keys.
A name alone is a poor key. “Müller GmbH” and “Mueller GmbH” are the same buyer to a person and two different strings to a system.
2. Look before you create
Run the same sequence for every handoff:
Does an ERP order with this deal reference already exist? If yes, do not create another. Update or stop.
Does a customer match on account number or VAT number? If yes, attach the order to that customer.
Is there no match at all? Create the customer only if the required fields are complete.
Is there a partial match, such as the same name with a different address? Do not guess. Send it to a person.
Repeated delivery is one duplicate risk to test alongside concurrent requests and inconsistent customer records.
Systems retry. Networks drop. Someone clicks “send” twice. The standard idea is idempotency: repeating a request has the same intended effect as sending it once. In practice, the deal reference travels with every request, and the receiving side treats a second request with the same reference as a repeat, not a new order. Whether your ERP supports this natively or needs a check in front of it depends on the system and the implementation.
4. Send uncertain matches to a person
Some cases cannot be settled by a rule: two customers with similar names, a VAT number that matches a record with a different address, a deal that changed after the first send. Give the reviewer a short card, not a raw record:
The incoming deal and the closest ERP record, side by side.
The field that caused the doubt.
Three choices: use the existing record, create a new one, or reject.
One named role should own this queue, usually sales administration.
Hypothetical workflow design
This is a design sketch, not a finished client setup. A small distributor wants no duplicate orders from its CRM.
A deal is marked won. The workflow reads the order information.
It checks the facts against the ERP: deal reference, account number, VAT number source 2.
A clean match with all required fields goes through under the rules you set.
A partial match, a missing required field or an unusual discount goes to a person with the side-by-side card source 3.
The person decides. The workflow records the decision and carries on.
How the reference and account number are written back depends on your setup and the implementation.
Keep the log
Write down every match decision: which key matched, who approved the exception, and when. It helps when someone asks later why two records were merged. Keep customer data out of ordinary logs where you can, and minimize sensitive content that does get logged.
Recover when a handoff fails halfway
Some handoffs will fail. A connection drops, the ERP rejects a field, or a person closes a window at the wrong moment. What matters is that you can see the failure, find the order and finish it without creating it twice.
Plan for four things: retries, an exception queue, a named owner and a record of what was sent.
1. Retry the safe steps automatically
A short outage is not a reason to bother a person. Let the workflow try again a few times, with a pause between attempts. Retries are safe only if repeats are harmless, which is why the deal reference travels with every request.
Set a limit. After three or four attempts, move the order to the exception queue. Endless retries hide problems.
Separate two kinds of failure:
Temporary. The ERP is unreachable or slow. Retry.
Permanent. The ERP rejects the data, such as an unknown article number. Do not retry. Send it to a person.
2. Use an exception queue
An exception queue is one list where every stuck order lands. Without it, failures hide in email alerts and log files. Each entry should show:
The deal reference and customer name.
The step that failed: customer lookup, header created, lines added, confirmation written back.
The error message in plain words.
The time of the first attempt and the last retry.
What is already in the ERP, if anything.
That last point covers the half-finished order. A header without its price lines is the classic case. The person fixing it should see the header is there and not create a second one.
The pattern matches uncertain matches: the workflow checks the facts, and anything it cannot settle goes to a person source 3. Whether one queue serves both, or two, is a design choice for your implementation.
3. Give every failed order one owner
A queue nobody owns is just a longer list. Name a role for each type of failure:
Failure type | Typical owner | Example action |
|---|---|---|
Missing or wrong customer data | Sales administration | Correct the CRM record, resume |
Price or discount outside rules | Sales manager | Approve or reject |
Item or tax code unknown in the ERP | Order desk or finance | Fix the master data |
System unreachable for hours | IT contact | Restore, then trigger a resume |
This is an example split, not a fixed rule. Add a time target for each, such as the same business day.
4. Keep a record of what was sent
For every attempt, store:
The deal reference.
The payload that was sent, or a reference to it.
The response from the ERP.
The result: created, repeated, rejected or stopped.
Who resumed or approved it, and when.
This answers the hard question after a failure: what did the ERP actually receive? It also tells you whether it is safe to resume. Keep sensitive customer content out of ordinary logs. A reference and a status are often enough. Where logs sit, and who can read them, is part of your setup.
5. Resume, do not restart
When a person fixes the cause, the workflow continues from the failed step. First it runs the same check as at the start: does an order with this deal reference exist? If yes, it completes the missing parts. If not, it creates it.
Two habits keep this clean:
Never fix a failed order by retyping it in the ERP without noting the deal reference. That is how a later retry creates the duplicate.
Write the final ERP order number back to the CRM, so the deal is visibly closed out.
Hypothetical recovery design
This is a design sketch, not a client case. A distributor’s handoff stops after the order header is created because one article number is unknown in the ERP.
The workflow retries once, sees the same rejection and treats it as permanent.
The order moves to the exception queue, showing that the header exists and the lines do not.
The order desk corrects the article number in the master data.
The workflow finds the header by deal reference and adds the lines.
The ERP order number is written back to the CRM, and the decision is logged.
Queue layout, retry limits and the resume step all depend on your setup and the implementation.
Checklist before you go live and questions to ask any tool
A handoff is ready to go live when every field has an owner, every handoff has a deal reference and every failure has a named person.
Pre-launch checklist
Mapping
Every field the ERP needs is listed, with one owning system.
Each field has a rule for missing values: required, defaulted or overridable.
Units, currency codes, dates and address formats are agreed.
The ERP account number is written back to the CRM.
Duplicate prevention
The CRM creates one deal reference per won deal, and it is stored on the ERP order.
The workflow checks for an existing order and customer before it creates anything.
Partial matches go to a named reviewer with a side-by-side view.
Repeated requests with the same reference are treated as repeats.
Recovery
Retries have a limit, and permanent errors skip retries.
One exception queue shows the failed step and what already exists in the ERP.
Every failure type has an owner and a time target.
Each attempt is recorded: reference, response, result, and who resumed it.
Resuming runs the existing-order check first.
Test run
Test with a set of past orders, kept away from the live ERP.
Include the awkward ones: a reopened deal, a new customer, a large discount, a missing ship-to address.
Send the same deal twice on purpose and confirm only one order results.
Stop a handoff halfway and confirm you can resume it.
To start small, pick one order type and one product line. Our guide on choosing your first AI automation helps with that choice. TRUSTBYTES offers a pilot that starts with one process and runs for 30 days, with results deciding the next step source 4.
Questions to ask any tool
The same questions work for an integration platform, a workflow builder or a done-for-you service. Ask in writing and keep the answers.
Where does the workflow run?
Does the engine run on your own infrastructure, in a vendor cloud, or in either, by your choice?
Who operates it, and who can reach it?
Where does each part process data?
A workflow that runs locally is only one part of the picture. Ask about each part separately:
The AI model. Which provider runs it, in which region, and does your order data leave your environment to reach it? You can choose EU or German hosting and AI model providers to suit your requirements source 4.
Connected services. Your CRM, ERP and accounting tools each process data on their own terms. Check where each one stores it.
Logs. What gets written, where, for how long, and who can read it?
Backups. Where are copies stored, and can you delete customer data from them?
How does it handle failures and people?
Can it retry temporary failures and stop on permanent ones?
Can a person review an uncertain match before anything is created? Ask every vendor to show this step working, not described.
Can you see what was sent, what came back and who approved it?
How does it connect to your systems?
Which of your exact systems and versions can it read and write, and how?
Who builds and tests the connection? With us, done-for-you implementation is available alongside the software source 2.
What happens to the workflow when your CRM or ERP changes a field?
Compliance and control
Is the data flow defined and documented, with access rules? TRUSTBYTES describes its approach as GDPR/DSGVO by design, with a defined data flow, access rules and human approvals source 4.
Who signs off on changes to the rules?
A good vendor answers plainly. Treat a vague answer as a gap and ask again.
FAQ
What causes duplicate orders in a CRM-to-ERP handoff?
Duplicate requests, retries, concurrent runs and inconsistent identifiers can all create duplicate orders. Use a durable idempotency key or unique constraint where supported, and test concurrent requests. A separate look-up without an atomic uniqueness check may still allow duplicates.
Who should approve exceptions?
The person closest to the data. Name a role, not a team.
Customer and address doubts: sales administration.
Discounts outside the agreed limit: the sales manager.
Unknown item or tax codes: the order desk or finance.
Systems down for hours: your IT contact.
Give each role a time target. Keep the decision with a person where money or customer records change.
How do I start small?
Pick one order type and one product line.
Write the field map and name one owner for each field.
Add the deal reference and the check for an existing order.
Test with past orders, away from the live ERP.
Send one deal twice on purpose. Confirm only one order results.
Go live with a person reviewing every exception.
Widen the scope only when the exception queue is quiet.
What if an order fails halfway?
Do not retype it by hand. Find it in the exception queue, see what already exists in the ERP, fix the cause and resume from the failed step.
Does a local workflow mean all my data stays local?
Not automatically. The workflow engine, the AI model, your connected services, logs and backups each process data in their own place. Ask about each part separately.
Want to talk it through?
If you would like a second pair of eyes on your field map or your exception rules, we are happy to talk. Talk to us for 15 minutes. You can also see how this works on the product page and the use-cases page.