SAP Knowledge Base Article - Public

3748696 - Error "cannot read properties of undefined (reading 'name')" when previewing a custom analytical query without measures - SAP S/4HANA Cloud Public Edition

Symptom

  • An error occurs when previewing a custom analytical query.
  • Error message: "Cannot read properties of undefined (reading 'Name')".

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Go to the application Custom Analytical Queries and Services.
  2. Click Manage Queries.
  3. Select the relevant custom analytical query.
  4. Click Preview.
  5. Observe the error message: "Cannot read properties of undefined (reading 'Name')".

Cause

The error is caused by the absence of a valid measure in the query.

Resolution

  1. Open Custom Analytical Queries and Services.
  2. Edit the affected custom analytical query.
  3. Add at least one valid measure to the query.
  4. Save and publish the query.
  5. Preview the query again and confirm the error no longer appears.

Keywords

custom analytical queries, preview error, cannot read properties of undefined, reading name, undefined name, measure missing, no measure, add measure, analytical dimension, query preview, fiori query designer, s/4hana cloud public edition, analytical query error, manage queries, custom query , KBA , BC-SRV-APS-ANA-MDA , Generic Player for Multidimensional Analysis , BC-SRV-APS-EXT-AQD , Fiori based Query Designer , Problem

Product

SAP S/4HANA Cloud Public Edition 2602