Loading

Data 360: Error "Primary key has to be mapped for the following entities" when deleting mapping for Data Model Object primary key

Дата публикации: Oct 30, 2025
Описание

To review the fields of a data stream or data lake object (DLO) that are mapped to a data model object (DMO), you can open the data stream or DLO and click the Review button in the Data Mapping section. In the data mapping canvas, DMOs that are mapped to the data stream are listed on the right. Primary key fields on each DMO are highlighted with a red asterisk. If you click the relationship between a DLO field and a DMO primary key and then click the Delete button in the popup, the following error will appear:

Primary key has to be mapped for following entities: [Name of DMO]

As the primary key is a required field, it isn't possible to just delete the mapping for this field while other fields on the DMO are still mapped.

Решение

If you need to delete the mapping for the primary key field (e.g., to map the primary key to another field on the DLO/Data Stream), all mappings between the DLO and the DMO must be removed.

To do this:

  1. Click the Remove Mappings (delete/trash can) icon next to the Data Model Object name in the Data Model Entities panel on the right in the data mapping canvas

  2. In the popup, click either:
    • The Remove Mappings button if other DLOs are mapped to the DMO, or
    • The Delete Object button if this is the only DLO mapped to the DMO

See "Delete a Data Model Object" and "Remove Field Mappings" for more information about the dependencies listed in the popup. These dependencies may need to be resolved before the Remove Mappings or Delete Object buttons become clickable.

Номер статьи базы знаний

001993463

 
Загрузка
Salesforce Help | Article