SAP Knowledge Base Article - Public

3502115 - Error importing objects from Space A to Space B via JSON

Symptom

The following error is raised when importing JSON/CSN file into Datasphere space 

  • XXX.json cannot be imported
    The object XXXX cannot be saved because it depends on following missing objects : XXXX, XXX , XXX

Environment

SAP Datasphere

Reproducing the Issue

  1. Create a View in Space A
  2. Export to CSN/JSON File
  3. Edit JSON File and replace Space A with Space B
  4. Go to Space B --> Import objects from CSN/JSON file

Resolution

  • It is recommended to not modify the CSN manually
  • When changing shared object to local, remove  "@cds.persistence.exists": true 
  • Remove the whole definition of context as well

     : {
          "kind": "context",
          "@EndUserText.label": "",
          "@DataWarehouse.space.schema": "",
          "@DataWarehouse.space.name": ""
        }
     

See Also

Creating, Finding, and Sharing Objects

Keywords

space, JSON, csn object, view, cds, datasphere,  , KBA , DS-MD , Modeling (Data Builder) , Problem

Product

SAP Datasphere all versions