Skip to Content
avatar image
Former Member

CX_SADL_CONTRACT_VIOLATION-ENTITY_NOT_FOUND error on CDS activation (draftEnabled)

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Mar 22, 2018 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

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 22, 2018 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?



    Add comment
    10|10000 characters needed characters exceeded