cancel
Showing results for 
Search instead for 
Did you mean: 

Remove content script

michaelc
Champ on-the-rise
Champ on-the-rise
Greetings.
I am using WCMQS on one of my many projects.
I have a problem with database locks and it seems to be coming from a publish.

I was given the following script to clear the que.

 
var nodes = search.luceneSearch("+PATH:""/app:company_home/st:sites/cm:hmornsite//*""+TYPE:""ws:publishqueueentry""");

for each(n in nodes) {
   n.remove();



Problem is this throws an error
Failed to run Actions due to error: 11134573 Failed to execute script 'workspace://SpacesStore/b522c466-9ffb-47a5-a7bf-f59fb3207979': missing ) after argument list (workspace://SpacesStore/b522c466-9ffb-47a5-a7bf-f59fb3207979#1)

the syntax's seems odd
1 REPLY 1

lista
Star Contributor
Star Contributor
The problem is with the query syntax, there's a couple of unescaped quotes there.