Symptom
While saving the Cloud Data Source, an error message appears stating: ‘A key for master data is required.
Environment
SAP Cloud for Customer Core Applications
Reproducing the Issue
- Navigate to Business Analytics.
- Go to Design Data Source and select Edit.
- Create a Cloud Data Source.
- Select the characteristics required in the data source.
- Select the field that you want to set as “Key for Master Data”.
- Observe that an error message appears at the bottom of the page.
Cause
This behavior is expected. The “Key for Master Data” field can only be assigned to characteristics that do not have any Referencing Data Source information maintained.
Resolution
The purpose of creating a Cloud Data Source with usage as Master Data (with or without description) is to enable other Transactional Data Sources to reference it, using the characteristic marked as Key for Master Data.
Example:
Create a Cloud Data Source of usage Master Data, e.g., CDS1, and mark one of its characteristics as Key for Master Data.
Create a second Cloud Data Source of usage Transactional Data, e.g., CDS2.
In CDS2, you can reference CDS1 and use the key marked in CDS1 to populate the Referencing Data Source information for the characteristic in CDS2.
Important Note:
A characteristic cannot have both Referencing Data Source information and be marked as Key for Master Data at the same time. This restriction ensures proper data source relationships and avoids conflicts.
Keywords
Cloud Data Source, Analytics, Key for Master Data , KBA , AP-RC-ANA , C4C, ByD, Travel: Analytics Tools & Frameworks , How To
SAP Knowledge Base Article - Public