SAP Knowledge Base Article - Public

3086721 - "Data preview failed" in unpublished custom CDS view

Symptom

You want to create and preview a custom CDS view before publishing it.

You want to change and preview the custom CDS view before publishing those changes.

Environment

S/4HANA Cloud 2108

Reproducing the Issue

[Case 1] Unpublished custom CDS view

1. Open Custom CDS views app

2. Create a new view

3. Before publishing, click on preview

Error: Data preview failed


[Case 2] Unpublished changes in custom CDS view 

1. Open Custom CDS views app

2. Choose an existing view and click on edit

3. Click on preview

Error: Data preview failed

Resolution

Publishing the custom CDS view before previewing.

Publishing the view should not have any impact as long as it does not have dependencies.


A fix will be released with the S/4HANA Cloud 2108 HFC04 (5th September) which will disable the "Preview" button for unpublished/draft views.

Keywords

S/4HANA Cloud, 2108, Preview, Custom CDS view , KBA , BC-SRV-APS-GKE , Generic CDS Key User Editor , Problem

Product

SAP S/4HANA Cloud 2108