SAP Knowledge Base Article - Public

3590561 - Error when deploying graphical view with CAST formula in key fields

Symptom

Error occurs when deploying a graphical view which contains CAST formula for a key field, e.g.  CAST("KEY1" AS VARCHAR(16)) 

CSN Compilation failed with following messages: Errors(ORIGINAL): CSN property ‘key’ is not expected in ‘xpr[]’ [Ln 86] Errors(FORMATTED): CSN property ‘key’ is not expected in ‘xpr[]’ [Ln 86], Correlation ID: ...

Environment

SAP Datasphere

Reproducing the Issue

  1. Open graphical view in Data Builder
  2. Deploy the view and check the error message

Resolution

A fix for this issue was created and it will be available via SAP Datasphere Wave 2025.08.
See SAP Note 2984828 - SAP Datasphere Release & Delivery Schedule regarding the planned availability of the fix.

As global deployment usually takes 24 hours, plan to test the fix one day later.

Keywords

"CSN property ‘key’ is not expected in ‘xpr", CAST, graphical view, deployment error , KBA , DS-MD-VIW , Views , Problem

Product

SAP Datasphere all versions