cancel
Showing results for 
Search instead for 
Did you mean: 

CX_SADL_CONTRACT_VIOLATION-ENTITY_NOT_FOUND error on CDS activation (draftEnabled)

Former Member
0 Kudos

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

CX_SADL_CONTRACT_VIOLATION-ENTITY_NOT_FOUND

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

https://help.sap.com/viewer/cc0c305d2fab47bd808adcad3ca7ee9d/7.51.2/en-US/cf4e894812d140b0a5b6ce648b...

Please advise

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Andre_Fischer
Product and Topic Expert
Product and Topic Expert

Are you sure that you have set the annotation

@ObjectModel.transactionalProcessingDelegated: true

that propagates the transactional processing back to your interface view?

Regards,

Andre