Loading

OmniStudio DataMapper Extract Returns Null for Custom Field with Duplicate API Name

Udgivelsesdato: Aug 7, 2026
Beskrivelse

Issue

A OmniStudio Data Mapper Extract (formerly DataRaptor Extract) does not return the expected value for a custom field. Instead, the field comes back as null, even though the record clearly holds a value for that field.
This happens when an object has two fields whose API names are identical once the namespace prefix is ignored.

Example

  • Managed-package custom field: {namespace}__Email__c
  • Local custom field: Email__c
Both fields resolve to the same base API name, Email__c, when the namespace is set aside.

Symptoms

  • The record contains a value for the custom field (for example, Email__c), but the Data Mapper Extract output shows null for that field.
  • The attribute is missing entirely from the response JSON. Because Data Mapper ignores null values by default, no key is written to the configured output JSON path.
  • Other fields in the same Data Mapper extract map and return correctly.

Applies To

  • Salesforce OmniStudio — Data Mapper Extract (previously named DataRaptor Extract)
  • Objects that contain both a managed-package field and a local field sharing the same base API name (namespace ignored)
Root Cause
Salesforce uses the __c suffix to mark a field as custom, and a managed package adds a {namespace}__ prefix to its fields. When a managed-package field and a local field share the same base name, their API names differ only by that namespace prefix — for example, acme__Email__c versus Email__c.
When the Data Mapper resolves the extract path, the two names collide once the namespace is disregarded, so it cannot reliably bind the mapping to the intended field and returns null. Because the Data Mapper's default behavior is to omit null values from the output, the attribute is never written to the response JSON path — which is why the field appears to be missing rather than simply empty.
This is a naming-collision condition, not a data problem: the value exists on the record, but the duplicate API name prevents the extract from retrieving it.
Løsning

Salesforce treats an API name as a unique identifier. Reusing the same base API name across two fields — even when a namespace makes them technically distinct — is not a recommended practice and can cause conflicts and unexpected behavior. Give each field a unique API name wherever possible.

Use one of the following options to resolve the issue. Either one should be enough on its own.

Option A — Rename the field to a unique API name (recommended)

  1. In Setup, open Object Manager, select the object, then open Fields & Relationships.
  2. Edit the Field Label / Field Name so the generated API Name is unique across the object.
  3. Save the field.
  4. Re-run the Data Mapper Extract and confirm the field now returns its value.

If the field is referenced by other APIs or integrations and cannot be renamed, use Option B instead.

Option B — Map a formula field that mirrors the value

  1. On the same object, create a new custom field with data type Formula.
  2. Set the formula Return Type to Text (adjust to match the field's data type if needed).
  3. Set the formula to reference the original custom field (for example, Email__c).
  4. Complete the remaining field settings, including Field-Level Security and Page Layouts.
  5. In the Data Mapper, map the Extract JSON Path to the new formula field instead of the original.
  6. Re-run the Data Mapper Extract and confirm the value now appears in the output.

If the issue persists

If neither option resolves the problem, contact Salesforce Customer Support through the Salesforce Help Portal for further investigation.
Vidensartikelnummer

000393901

 
Indlæser
Salesforce Help | Article