Symptom
- Publishing a custom CDS view fails.
- Error message: "No assoc. found for key field VALIDITYENDDATE; either add assoc. or remove data cat #DIMENSION".
Environment
- Product: SAP S/4HANA Cloud Public Edition
- Generic CDS Key User Editor
Reproducing the Issue
- Open the Custom CDS Views app.
- Open the relevant custom CDS view.
- Start Publish; the process fails with the stated error message.
Cause
- No association found for key field VALIDITYENDDATE while the view uses data category DIMENSION, as indicated by the publish error.
Resolution
- Open the Custom CDS Views app and select the affected custom CDS view.
- Go to Element Properties.
- Locate elements ValidityStartDate and ValidityEndDate.
- Enable Semantic Value for both ValidityStartDate and ValidityEndDate.
- Save the changes.
- Publish the custom CDS view again and confirm the publish succeeds.
See Also
Keywords
custom cds views, publish error, publishing failed, validityenddate, validitystartdate, data category dimension, no assoc found, association missing, semantic value, element properties, analytical scenario, key field, cds view publish, cds modeling, dimension , KBA , BC-SRV-APS-GKE , Generic CDS Key User Editor , Problem
Product
SAP S/4HANA Cloud Public Edition all versions
SAP Knowledge Base Article - Public