<?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 Remove non existing aspect from node in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/remove-non-existing-aspect-from-node/m-p/302316#M255446</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to run a batch in the Share JavaScript console that removes an specific aspect applied to some nodes. The problem is that the aspect is a custom aspect and doesn't exist anymore in our last release &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Example&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var def =&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; query: "@name:283.JPG",&lt;BR /&gt;&amp;nbsp; store: "workspace://SpacesStore"&lt;BR /&gt;};&lt;BR /&gt;var results = search.query(def);&lt;BR /&gt;for each(var node in results) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;logger.log(node.name + " (" + node.typeShort + "): " + node.nodeRef);&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;if(node.hasAspect("icmr:protectedContent")) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;logger.log("Removing aspect");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;node.removeAspect("icmr:protectedContent");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;}&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;500 Internal Error&lt;BR /&gt;An error inside the HTTP server which prevented it from fulfilling the request.&lt;BR /&gt;08190051 Wrapped Exception (with status template): 08190009 Failed to execute script 'Javascript Console Script': Class {&lt;A href="http://www.alfresco.org/model/icmr/1.0}protectedContent" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/icmr/1.0}protectedContent&lt;/A&gt; has not been defined in the data dictionary&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestion on how to achieve this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Sep 2014 07:43:46 GMT</pubDate>
    <dc:creator>ceeliro</dc:creator>
    <dc:date>2014-09-19T07:43:46Z</dc:date>
    <item>
      <title>Remove non existing aspect from node</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/remove-non-existing-aspect-from-node/m-p/302316#M255446</link>
      <description>Hi All,I am trying to run a batch in the Share JavaScript console that removes an specific aspect applied to some nodes. The problem is that the aspect is a custom aspect and doesn't exist anymore in our last release Examplevar def ={&amp;nbsp; query: "@name:283.JPG",&amp;nbsp; store: "workspace://SpacesStore"};var r</description>
      <pubDate>Fri, 19 Sep 2014 07:43:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/remove-non-existing-aspect-from-node/m-p/302316#M255446</guid>
      <dc:creator>ceeliro</dc:creator>
      <dc:date>2014-09-19T07:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Remove non existing aspect from node</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/remove-non-existing-aspect-from-node/m-p/302317#M255447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You need to add that aspect and deploy again.Then run that script to remove all aspects.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2014 10:16:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/remove-non-existing-aspect-from-node/m-p/302317#M255447</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2014-09-19T10:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Remove non existing aspect from node</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/remove-non-existing-aspect-from-node/m-p/302318#M255448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, exactly what i did…&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2014 10:30:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/remove-non-existing-aspect-from-node/m-p/302318#M255448</guid>
      <dc:creator>ceeliro</dc:creator>
      <dc:date>2014-09-19T10:30:34Z</dc:date>
    </item>
  </channel>
</rss>

