Skip to Content

CX_SADL_CONTRACT_VIOLATION-ENTITY_NOT_FOUND error on CDS activation (draftEnabled)

Mar 22 at 10:55 AM


avatar image
Former Member

We have interface view through which we generate BOPF object. We enable there draft using draftEnabled: true.

If we also use @ODATA.publish: true, we can see function imports for BOPF Draft actions, like edit or activate.

However, in the consumption view we do not see these actions. We tried to provide there annotation draftEnabled, but it does not go successfully through activation process.

We get an error


It seems we defined everething as it is defined in SAP Documentation

Please advise

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Best Answer
avatar image
Former Member Mar 22 at 12:08 PM

Yes, thank you for the response. I found the problem.

If you create consumption view without draft and change it afterwards to draft enabled, it will not work.

I created new consumption view with the same logic, it works.

Now I have a different issue with association to a private view and get attribute from it - I get error during activation, no cause specified

This question is solved

10 |10000 characters needed characters left characters exceeded
Andre Fischer
Mar 22 at 11:33 AM

Are you sure that you have set the annotation

@ObjectModel.transactionalProcessingDelegated: true

that propagates the transactional processing back to your interface view?



10 |10000 characters needed characters left characters exceeded