AnsweredAssumed Answered

xpath Search

Question asked by anshu.kumar on Jan 31, 2014
Latest reply on May 30, 2014 by mrinal3199
I am working on Enterprise v4.1.7. When I'm executing below piece of code in Repository scripts,
<!–break–>
var query = "/app:company_home/app:dictionary/app:email_templates/*[@cm:name='activities']";
if(search.isValidXpathQuery(query))
{
   var nodes = search.xpathSearch(query);
}


I am getting this error <em>Failed to run Actions due to error: 00313884 Failed to execute script 'workspace://SpacesStore/1d9b35dd-0519-4098-aaf7-92e0fffa095a': 00313883 Failed to execute search: /app:company_home/app:dictionary/app:email_templates/*[@cm:name='activities']</em>

And this is caused by <em>java.lang.UnsupportedOperationException</em>

This is even when it successfully validates <strong>'isValidXpathQuery'</strong> method.

I'm not sure what I've missed here. Can anybody help me with this?

Outcomes