Source-to-Target Mapping for Data Integration
A practical guide for enterprise data architecture.
For each target attribute, record the source field or derivation, business meaning, type, transformation, null behavior and responsible owner. State filters, joins, units, code translations and time assumptions. Identify fields with no source or targets that intentionally combine multiple inputs.
Document the mapping
For each target attribute, record the source field or derivation, business meaning, type, transformation, null behavior and responsible owner. State filters, joins, units, code translations and time assumptions. Identify fields with no source or targets that intentionally combine multiple inputs.
Include relationship and grain rules
Describe source and target grain, key construction, join cardinality and duplicate behavior. Specify how missing or conflicting identifiers are handled. These details prevent syntactically valid transformations from multiplying rows or changing meaning unexpectedly.
Make it executable where practical
A mapping can inform code generation, tests, documentation and lineage, but not every rule is safely automatable. Keep transformation logic versioned and link the specification to implementation. Test representative inputs, boundaries, invalid cases and expected outputs.
Review and maintain
Business owners confirm meaning and exclusions; engineers confirm feasibility and performance; governance roles review relevant access or retention requirements. Update mappings as source schemas, target contracts and business rules change. See Data Contracts Between Producers and Consumers and Data Lineage: Source to Report.
Apply the guidance
Confirm requirements with system owners and representative consumers. Record assumptions, dependencies and unresolved decisions, then validate the design against realistic workload and failure scenarios.
Build a mapping specification
For each target concept, record the source field, source meaning, target meaning, transformation, default or rejection behavior, data type, quality rule and owner. Include keys, relationships, units, timezone and temporal semantics. A simple column-to-column spreadsheet is insufficient when transformations change business meaning.
Document transformations and information loss
Write formulas and code mappings explicitly, including rounding, normalization, splitting, concatenation and derived values. Identify when multiple source codes map to one target value or a target cannot represent a source distinction. Preserve original values or provenance when later reconciliation or audit requires it.
For identity mapping, include key scope and match logic. For effective-dated values, specify which source date determines target validity. For timestamps, separate occurrence, source update and ingestion time if they answer different questions.
Validate source-to-target results
Use representative records and exception samples. Compare counts, key coverage, null rates, value distributions and important aggregates. Validate one-to-many and many-to-many transformations to detect duplication or dropped records. Include late data, invalid codes and corrections.
Have a domain owner review semantic mappings, and have an engineer review implementation. Record unresolved items with owners and block release where assumptions affect identity, privacy or critical measures.
- Does every target field have a meaning and source?
- Are transformations and lossy mappings explicit?
- Are keys and temporal behavior preserved?
- Can exceptions be traced and resolved?
- Are counts and business results reconciled?
Worked example: map a customer identifier
Document the source field, source grain, target field, target grain, transformation, null behavior, and key assumptions. If the source identifier is unique only within a source system, construct or maintain a composite identity instead of treating it as globally unique. Record how duplicates, merges, splits, and unknown values are handled. A mapping should describe the relationship between concepts as well as the expression that moves a value.
Include representative input and expected output, boundary cases, code translation, unit conversion, and effective-date behavior. State whether a mapping is reversible and where information is lost. Add quality checks for unmatched keys, unexpected cardinality, invalid values, and row-count changes. If source and target grains differ, define aggregation or expansion explicitly.
Review mappings when contracts change
Version the mapping and identify its owner, consumers, and deployment. A source schema change should trigger impact analysis and a compatibility decision. Track exceptions and temporary workarounds with expiry and remediation owners. Reconcile target results to source controls after release and retain run context for investigation.
Mapping review and reconciliation example
For a source status mapped into a target lifecycle, list all source values, descriptions, target values, and handling for unknown or deprecated codes. Validate examples with domain owners. Record whether a mapping is one-to-one, many-to-one, or lossy. Preserve original codes and the mapping version on target records where later reinterpretation is possible.
After deployment, count unmatched values and compare source and target populations. Review null conversions and row expansion. Assign an owner to mapping changes and notify consumers when target semantics change. Add regression cases for previous defects.
Manage mapping exceptions and versions
Version mappings with source and target contract versions, owner, effective date, and unresolved values. Give exceptions an approver, scope, and expiry. Preserve original values when transformations are lossy and provide a way to reprocess after mapping changes.
Monitor unmapped values and conversion errors. Communicate target semantic changes to consumers and reconcile output after each release.