Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

InvalidItemStateException on delete: this item does not exist anymore

Jdruwe
Level 5
Level 5

I am getting an error when deleting a component:

Caused by: javax.jcr.InvalidItemStateException: This item

[/content/OBFUSCATED_PATH/responsivegrid/story_cards_componen_1364741682] does not exist anymore

Screenshot 2019-06-03 at 08.44.25.pngScreenshot 2019-06-03 at 08.43.09.png

As you can see the resource DOES exists so I am not sure why I am getting this error. Any ideas?

1 Reply
Jdruwe
Level 5
Level 5

It was our own code that was causing the error. We had a SlingPostProcessor that was trying to access the resource. We now only proceed when no deletion modification is found.