Highlighted

InvalidItemStateException on delete: this item does not exist anymore

Avatar

Avatar

Jdruwe

Avatar

Jdruwe

Jdruwe

02-06-2019

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?

Replies

Highlighted

Avatar

Avatar

Jdruwe

Avatar

Jdruwe

Jdruwe

02-06-2019

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.