sapmentors / sitregcapm

SITreg implemented in the SAP Cloud Application Programming Model
Apache License 2.0
12 stars 13 forks source link

Start in Cloud Foundry fails with "key properties are not propagated" error #44

Open gregorwolf opened 4 years ago

gregorwolf commented 4 years ago

I've tried a deployment of the application to SAP CP - Cloud Foundry. But currently the srv fails to start and throws this errors:

[cds] - connect to datasource - hana:gen/csn.json
cds compile failed due to these errors...

 at gen/csn.json:9: Error: Entity "localized.AdminService.CoOrganizers" does not have a key: ODATA entities must have a key
 at gen/csn.json:9: Info: Key "events" has not been projected - key properties are not propagated (in entity:"localized.AdminService.CoOrganizers"/query:1)
 at gen/csn.json:114: Error: Entity "localized.AdminService.Devices" does not have a key: ODATA entities must have a key
 at gen/csn.json:114: Info: Key "events" has not been projected - key properties are not propagated (in entity:"localized.AdminService.Devices"/query:1)
 at gen/csn.json:2577: Error: Entity "localized.ParticipantService.CoOrganizers" does not have a key: ODATA entities must have a key
 at gen/csn.json:2577: Info: Key "events" has not been projected - key properties are not propagated (in entity:"localized.ParticipantService.CoOrganizers"/query:1)
 at gen/csn.json:2683: Error: Entity "localized.ParticipantService.Devices" does not have a key: ODATA entities must have a key
 at gen/csn.json:2683: Info: Key "events" has not been projected - key properties are not propagated (in entity:"localized.ParticipantService.Devices"/query:1)
 at gen/csn.json:3817: Error: Entity "localized.PublicService.CoOrganizers" does not have a key: ODATA entities must have a key
 at gen/csn.json:3817: Info: Key "events" has not been projected - key properties are not propagated (in entity:"localized.PublicService.CoOrganizers"/query:1)
 at gen/csn.json:3923: Error: Entity "localized.PublicService.Devices" does not have a key: ODATA entities must have a key
 at gen/csn.json:3923: Info: Key "events" has not been projected - key properties are not propagated (in entity:"localized.PublicService.Devices"/query:1)
 at gen/csn.json:4960: Error: Entity "localized.ReceptionistService.CoOrganizers" does not have a key: ODATA entities must have a key
 at gen/csn.json:4960: Info: Key "events" has not been projected - key properties are not propagated (in entity:"localized.ReceptionistService.CoOrganizers"/query:1)
 at gen/csn.json:5066: Error: Entity "localized.ReceptionistService.Devices" does not have a key: ODATA entities must have a key
 at gen/csn.json:5066: Info: Key "events" has not been projected - key properties are not propagated (in entity:"localized.ReceptionistService.Devices"/query:1)
 at gen/csn.json:7393: Info: Input CSN contains localization view definitions which are re-calculated

As the entities CoOrganizers and Devices are not localized it is especially strange.

gregorwolf commented 4 years ago

Posted the issue at srv start in Cloud Foundry fails with "key properties are not propagated"

balbinosoares commented 4 years ago

I received the same error. I believe it has to do with the type of key used in these entities. This entities had composite keys.