Lucene Exception when Deleting Content Using Content Service
Hi,
I am using Umbraco v7.5.3.
We have a situation where (due to some bad decisions made when importing some data) we have a site that has lots of duplicate content which needs to be deleted.
I have written some code which identifies the content to be deleted and then sits in a loop attempting to delete them using the Content Service.
However, when running the code I repeatedly get a Lucene exception - "this IndexWriter is closed".
Can anyone suggest what the problem might be and how I should go about fixing it, please?!
A fragment of the code I am using, and the stack trace are below...
Thanks - yes - all of the nodes had a ) in them as I was looking to remove duplicates which were named like this...
Example Document
Example Document (1)
Example Document (2)
Example Document (3)
I also tried changing the container to use a list view in Umbraco, then selected multiple documents in the UI and clicked 'Delete', which resulted in the same exception.
If I get the chance I'll try it on a clean install and file a bug... it does feel more like a bug as it was also happening using the Umbraco UI, not just my code.
Did you ever find a solution to this? If so, would you mind sharing? I'm running into a similar issue. I have thousands of nodes that I'm unable to delete either through the UI or via the content service.
Lucene Exception when Deleting Content Using Content Service
Hi,
I am using Umbraco v7.5.3.
We have a situation where (due to some bad decisions made when importing some data) we have a site that has lots of duplicate content which needs to be deleted.
I have written some code which identifies the content to be deleted and then sits in a loop attempting to delete them using the Content Service.
However, when running the code I repeatedly get a Lucene exception - "this IndexWriter is closed".
Can anyone suggest what the problem might be and how I should go about fixing it, please?!
A fragment of the code I am using, and the stack trace are below...
Do you have a node with a bracket in its name? If so, try to save & publish.
If you can reproduce this on an brand new umbraco, than it's a bug. In that case I would post this to http://issues.umbraco.org.
Hi Damiaan,
Thanks - yes - all of the nodes had a ) in them as I was looking to remove duplicates which were named like this...
I also tried changing the container to use a list view in Umbraco, then selected multiple documents in the UI and clicked 'Delete', which resulted in the same exception.
If I get the chance I'll try it on a clean install and file a bug... it does feel more like a bug as it was also happening using the Umbraco UI, not just my code.
Thanks, Chris
Chris,
Did you ever find a solution to this? If so, would you mind sharing? I'm running into a similar issue. I have thousands of nodes that I'm unable to delete either through the UI or via the content service.
Thanks, Chris
is working on a reply...