Worked example / Data integration

Reconcile CRM and billing exports
without losing unmatched invoices.

Four fictional invoices, three CRM accounts and two independently verified account mappings. See why three invoices link to CRM records and one remains unmatched, then download the exact input and output files.

1. Two source systems, different account IDs

The CRM uses C- identifiers; the billing system uses A- codes. A company name is descriptive, not an independently verified cross-system join key.

On a narrow screen, swipe within a table to view all columns.

Fictional CRM accounts
CRM account IDAccount name
C-104Harbor Supply Ltd
C-205Greenline Works
C-309Larch Studio

Download CRM accounts CSV.

Four fictional billing invoices
Invoice IDBilling account IDAmount (EUR)
INV-01A-700125.50
INV-02A-70074.50
INV-03A-70140.00
INV-04A-99960.00

Download billing invoices CSV. Import IDs as text; amounts are EUR decimal values.

2. Use only independently approved mappings

In this fictional project, an independently reviewed account register verifies that billing account A-700 is CRM account C-104 and A-701 is C-205. There is no approved relationship for A-999. Similar-looking names cannot establish a third mapping.

Approved crosswalk in the fictional scenario
Billing IDCRM IDEvidenceDecision
A-700C-104Approved account registerConfirmed
A-701C-205Approved account registerConfirmed

Download crosswalk CSV.

3. Retain every invoice after the join

Join on billing_account_id. Preserve the original invoice ID, amount and billing account. If the approved crosswalk has no match, leave the CRM ID blank and mark the invoice unmatched.

All four invoices retained in the reconciled output
InvoiceBilling IDCRM IDEURResult
INV-01A-700C-104125.50Matched
INV-02A-700C-10474.50Matched
INV-03A-701C-20540.00Matched
INV-04A-999—60.00Unmatched

Download reconciled invoices CSV.

Unmatched invoice exception
InvoiceBilling IDEURReason
INV-04A-99960.00No approved account mapping

Download exception report CSV.

4. Check counts, amounts and unresolved relationships

Row conservation

Four input invoices create four output invoice rows; original invoice IDs are unique. No invoice is dropped or duplicated by a many-to-one account join.

EUR reconciliation

EUR 300.00 input = EUR 240.00 matched (three invoices) + EUR 60.00 unmatched (one invoice). All source amounts are accounted for.

Document exceptions

Billing account A-999 remains unmapped. CRM account C-309 has no invoice in this sample; the absence of an invoice does not make that CRM account invalid.

Real projects must also test crosswalk uniqueness, source-grain definitions, currencies, reversals, dates and possible many-to-many relationships. These simplified files are fictional and do not claim a customer outcome.

For deduplicating records within a CRM, see the CRM deduplication walkthrough; for a defined integration project see data integration and reconciliation.

Do your reports disagree?

Describe your sources, approximate counts, available identifiers and required reporting outcome. No confidential records are needed for an initial enquiry.

Discuss integration requirements