<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic web script search returning deleted nodes... in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/web-script-search-returning-deleted-nodes/m-p/211363#M164493</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a webscript that I am calling through a rest call that makes a call like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var nodes = search.luceneSearch("TYPE:\"{&lt;/SPAN&gt;&lt;A href="http://www.mycompany.org/model/myproject/1.0}fileType\" rel="nofollow noopener noreferrer"&gt;http://www.mycompany.org/model/myproject/1.0}fileType\&lt;/A&gt;&lt;SPAN&gt;"", "cm:created", true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It has been working for quite a while but, for some reason, I recently got into a situation where this query started returning nodes that already have there node_deleted marked to true.&amp;nbsp; This caused the following exception:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;exception&amp;gt;org.alfresco.web.scripts.WebScriptException - Wrapped Exception (with status template): Error during processing of the template 'get(name) failed on instance of org.alfresco.repo.template.TempalteNode'.&amp;nbsp; Please contact your system adminstrator.&amp;lt;/exception&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;callstack&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.alfresco.service.cmr.repository.InvalidNodeRefException:&amp;nbsp; Node does not exist:&amp;nbsp; workspace://SpaceStore/2471d2c8-1fdf-4f3b-9421-b36e056506e1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.alfresco.repo.node.db.DbNodeServiceImpl.getNodePairNotNull(DbNodeServiceImpl.java:156)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.alfresco.repo.node.db.DbNodeServiceImpl.hasAspect(DbNodeServiceImpl.java:712)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am currently using alfresco labs 3.0 stable version.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could anyone suggest what could cause this problem or a good way to at least detect it and prune those nodes from my list?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Feb 2010 14:28:34 GMT</pubDate>
    <dc:creator>mfishm1</dc:creator>
    <dc:date>2010-02-16T14:28:34Z</dc:date>
    <item>
      <title>web script search returning deleted nodes...</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-script-search-returning-deleted-nodes/m-p/211363#M164493</link>
      <description>Hi,I have a webscript that I am calling through a rest call that makes a call like:var nodes = search.luceneSearch("TYPE:\"{http://www.mycompany.org/model/myproject/1.0}fileType\"", "cm:created", true);It has been working for quite a while but, for some reason, I recently got into a situation where</description>
      <pubDate>Tue, 16 Feb 2010 14:28:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-script-search-returning-deleted-nodes/m-p/211363#M164493</guid>
      <dc:creator>mfishm1</dc:creator>
      <dc:date>2010-02-16T14:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: web script search returning deleted nodes...</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-script-search-returning-deleted-nodes/m-p/211364#M164494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; By any chance are you able to resolve this poblem. If you solved can please share me the solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Richard&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 13:58:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-script-search-returning-deleted-nodes/m-p/211364#M164494</guid>
      <dc:creator>tuty_richard</dc:creator>
      <dc:date>2010-12-21T13:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: web script search returning deleted nodes...</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-script-search-returning-deleted-nodes/m-p/211365#M164495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is probably happening is that you are finding nodes in the ArchiveStore as well as the workspace store.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just filter out the results according to which store they are in.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 19:03:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-script-search-returning-deleted-nodes/m-p/211365#M164495</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2010-12-21T19:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: web script search returning deleted nodes...</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-script-search-returning-deleted-nodes/m-p/211366#M164496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi mrogers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Thanks for your updates. I tried ASPECT:\sys:archived to filter that result but its working at one level. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example If I have space like&amp;nbsp; comapnyhome/test/test1/test2. If I delete test2 folder and files inside it and executed query it works but if try to delete a folder directly of test folder again the issue persits.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Var query = "@cm\\:created:["+ tdate + " TO "+ fdate +"] -ASPECT:\"sys:archived\"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I you have any idea on how to filter can you please help me out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Richard&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 11:44:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-script-search-returning-deleted-nodes/m-p/211366#M164496</guid>
      <dc:creator>tuty_richard</dc:creator>
      <dc:date>2010-12-22T11:44:55Z</dc:date>
    </item>
  </channel>
</rss>

