SAP Knowledge Base Article - Public

3557114 - When updating Public Dimension with Data Import Service (DIS) API, properties will be cleared if no values are defined in request body.

Symptom

When using the Data Import Service (DIS) API to import only some of the properties to a public dimension with multiple hierarchies and properties, the API deletes the content of properties and hierarchies not specified in the request body.

Environment

SAP Analytics Cloud 2024.21.10

Reproducing the Issue

  1. Public dimension has the following member:
    1. ID: Test_01
    2. Property1: P1
    3. Property2: P2
    4. Hierarchy: H1
  2. Set up import API clients and token, write the following in request body:
    1. { "Data":[ { "ID":"Test_01", "Property1":"P01"} ] } 

  3. After running the import request, you will notice the dimension member is updated to the following:
    1. ID: Test_01
    2. Property1: P01
    3. Property2: (Empty)
    4. Hierarchy: (Empty)

Cause

The behavior observed is due to the current design of the Import API.

Resolution

Workaround: 

  1. Data Export Service: Use the Data Export Service to export the actual values of the public dimension. This will help you capture the current state and ensure other properties.
  2. Data Import Service: After obtaining the current values which you will use to build your body to import data for Data Import Service, update only the necessary values for the specific properties you intend to change.  

See Also

Your feedback is important to help us improve our knowledge base.

Keywords

SAP Analytics Cloud, Data Integration, Data Import API, Public Dimension, Import, Properties, Hierarchies, Deletion, Unmapped Properties, Contrary Behavior, File Upload, Import Jobs, Connections. , KBA , LOD-ANA-ML-DI , Data Integration, Data Export API, Data Import API , Problem

Product

SAP Analytics Cloud all versions