Quantcast
Channel: SCN : Discussion List - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 3131

CDS: problem changing primary key for entity

$
0
0

I made the big mistake of changing the internal structure of an entity (table) in my HDBDD file. The error message when activating says "New primary key of entity "s0nnnnnnnntrial.dev.Basket.data::Basket.Score" does not comprise all fields of an existing unique key or index, so there might be duplicates in existing data that would prevent activation".

 

 

 

My table has no data (yet).

 

 

 

It seems thus that performing the cardinal sin of modifying your model is not allowed. Nor do I seem able to physically DROP the table from the SQL console in the catalog - even after having assigned myself the DROP privilege and refreshed my role.

 

 

 

Is this a bug in CDS? It's certainly not user-friendly (and I'm not even ranting about all the goodies from RDL that SAP decided to kill along with that platform...)

 

 

 

Regards,

Trond


Viewing all articles
Browse latest Browse all 3131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>