Skip to content

MAP002 - Synthesised Value During Mapping

Description

A required target-side field had no donor on the source side, so the shim invented a default value (typically a default identifier scheme, role enum, or language tag).

Category

Mapping Errors

Severity

warning

When emitted

Emitted by the UNTP ↔ CIRPASS shims via compat/_mapping_codes.py constant MAP_CODE_SYNTHESISED. Common synthesis points include UNTP roles falling back to EUDPPRoleClass.ECONOMIC_OPERATOR and identifier schemes defaulting when the source uses a free-form URI.

Common causes

  • UNTP Party entries with no role mapping into CIRPASS relatedActors — the shim emits MAP002 and uses ECONOMIC_OPERATOR as a permissive default.
  • UNTP identifier schemes that don't appear in compat/_identifier_schemes.py — the shim wraps them and emits MAP002.

How to fix

  • Inspect the synthesised value and override it in the source payload if the default doesn't match your intent.
  • Re-run the migration after enriching the source side — MAP002 goes away once the donor field is populated.

See also