Skip to content

cds-feature-attachments interferes with Draft Deletion, causing Element 'prices' not found error. #675

Closed

Description

@AamenYousri-AllForOne

In my CAP Spring Boot application, I am using cds-feature-attachments with Draft Mode enabled on several entities.

Steps to Reproduce

  1. Create a draft for a primary entity.
  2. Add a draft entry for the prices composition.
  3. Delete the entry.
  4. Observe the application log.

Element 'prices' of entity 'ProductPrices_drafts' not found (service 'ProductCatalogService', event 'DRAFT_CANCEL', entity 'ProductCatalogService.ProductPrices')

Thank you

Image Image

Activity

  1. lisajulia commented on Nov 12, 2025

    @lisajulia
    Contributor

    Hello @AamenYousri-AllForOne, thanks for reporting this!
    I believe this might be the same error as #526 and thus be fixed by #669.

  2. self-assigned this
    on Nov 12, 2025
  3. AamenYousri-AllForOne commented on Nov 12, 2025

    @AamenYousri-AllForOne
    Author

    Hello @lisajulia,
    Thank you so much. Once the issue is fixed, should I just use the latest version of the dependency?

  4. lisajulia commented on Nov 17, 2025

    @lisajulia
    Contributor

    Hello @AamenYousri-AllForOne,
    yes, can you test with the current version, 1.2.2 (https://central.sonatype.com/artifact/com.sap.cds/cds-feature-attachments).
    Thanks!

  5. AamenYousri-AllForOne commented on Nov 18, 2025

    @AamenYousri-AllForOne
    Author

    Hello @lisajulia,
    It works now, thank you so much :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions