cancel
Showing results for 
Search instead for 
Did you mean: 

CLD200 - Entity is annotated with "@cds.persistence.skip" and cannot be served generically

0 Kudos
3,560

Hi!

I am currently working through CLD200 tutorial. Everything is working fine, but with consuming external services I got an error. "Entity "RiskService.BusinessPartners" is annotated with "@cds.persistence.skip" and cannot be served generically." Could somebody please help me what does that mean and how I can fix it?

Sourcecode: Adding an External Service (sap.com)

Thank you in advance!

Br
Ronny

View Entire Topic
robinjayasinghe
Advisor
Advisor
0 Kudos

The annotation "@cds.persistence.skip" means that during deployment no database artifacts will be created (as with "@cds.persistence.skip") and in addition the CAP runtime will not create a On-handler that would normally take care of executing database statements corresponding to the incoming requests. This is the default for remote calls as there is not local persistence to be called. The linked tutorial provides the code for such an On-handler. Just follow the instructions and you should be fine. 🙂

ashus190301
Newcomer
0 Kudos
can you provide the linked tutorial for On-handler?
Jacky_Liu
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi , Like the code as the following pic:

Jacky_Liu_0-1723429334024.png