DataSrcDataModelFieldMap defines a field-level mapping from a source data lake object (DLO) field to a target data model object (DMO) field in Data 360. It connects ingested fields to the data model and can record filtering configured through the Data Spaces UI. The mapping references the fields; it does not contain their field definitions.
Key Elements
| Element | What the Element Controls |
|---|---|
fullName |
Inherited metadata identity of the mapping component. This is separate from its user-friendly label. |
masterLabel |
Required string. The user-friendly name defined when the mapping is created. |
sourceField |
Required string. The developer name of the source DLO field, not a record ID. References CustomField metadata. |
targetField |
Required string. The developer name of the target DMO field, not a record ID. References CustomField metadata. |
filterApplied |
Boolean. true indicates that a filter applies to the DLO-to-DMO field mapping; false indicates that it does not. |
filterOperationType |
String containing the comparison operator. Required when filterApplied is true. |
filterValue |
String containing the comparison value. Required when filterApplied is true. |
versionNumber |
Required double. The version number of the mapping itself. |
templateVersion |
Integer. The version number of the field mapping template, distinct from the mapping's versionNumber. |
Behavior and Constraints
Access requires Data 360 permissions.
The endpoints are directional: sourceField identifies the DLO field, and targetField identifies the DMO field. Both can use object-qualified developer names. For example, Account1.LastModifiedDate__c can be mapped to ssot__Account__dlm.ssot__LastModifiedDate__c. Do not replace these names with record IDs.
When filterApplied is true, supply both filterOperationType and filterValue. These elements correspond to the operator and comparison value of a DLO filter applied in the Data Spaces tab. The documented filter example uses equals and Active. These are example values, not defaults or a complete list of supported operators.
The component extends Metadata and inherits fullName as its identity. Keep that identity separate from masterLabel, which is the display name. Also keep the two version concepts separate: versionNumber describes the mapping, while templateVersion describes its template. Neither is the Metadata API version.
Deployment and Retrieval
Components use the .dataSrcDataModelFieldMap suffix and are stored in the dataSrcDataModelFieldMaps directory.
In package.xml, use DataSrcDataModelFieldMap as the metadata type name and the component's fullName as its member name. This type also supports * in the manifest. See deploying and retrieving metadata with a ZIP file for manifest usage.
For dependency analysis, inspect both endpoint names. The source DLO field and target DMO field are separate field dependencies; the mapping does not contain either referenced field definition.
For Data Kit migrations, explicitly selecting mapping components mattered in a reported SFDX or Metadata API migration. Deploying DataPackageKitDefinition alone produced an empty kit in that scenario. The reported component selection is described under Reported Issues; it is not a universal deployment checklist.
Relationships
Both endpoint elements reference field metadata, but they serve different roles: one identifies the ingested DLO field and the other identifies the destination DMO field. These references identify the fields to examine when assessing mapping impact.
References
-
CustomField:sourceField,targetField.
Documentation Inconsistencies
The official declarative XML sample contains two tag errors: it closes filterValue as filtervalue, and it opens templateVersion as tepmlateVersion. XML element names are case-sensitive, and opening and closing names must match. Use matching filterValue and templateVersion tags rather than copying those errors.
Reported Issues
-
A Data Kit was deployed without its contents when only its definition was selected. In a January 2025 report involving an Ingestion API connector, multiple Ingestion API data streams, and mappings to custom and standard DMOs, the author reported that SFDX or Metadata API did not automatically select the kit components. The successful migration explicitly included
DataPackageKitDefinition,DataPackageKitObject,DataSourceBundleDefinition,DataSourceObject,DataSrcDataModelFieldMap,DataStreamTemplate,ExtDataTranObjectTemplate,FieldSrcTrgtRelationship,DataSource, andCustomObject. The last type covered custom DMOs and custom formula fields on standard DMOs in that scenario. This is a reported component set, not a requirement for every migration. Read the Data Kit migration report.
Common Questions
Do sourceField and targetField take record IDs?
No. They take developer names. sourceField identifies the DLO field, and targetField identifies the DMO field. Object-qualified names are supported by the documented example.
Which fields are required to enable filtering?
Set filterApplied to true and supply both filterOperationType and filterValue. They represent the comparison operator and value configured for the DLO filter in Data Spaces.
Why did deploying a Data Kit definition produce an empty kit?
In the reported migration, selecting DataPackageKitDefinition did not automatically select its contents. The successful migration explicitly included DataSrcDataModelFieldMap and the other components needed for that connector, its streams, and its DMO mappings.
Are versionNumber and templateVersion the same setting?
No. versionNumber is a required double describing the mapping's version. templateVersion is an integer describing the field mapping template's version. Neither identifies the Metadata API version.