<?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 Re: Recover folder from trashcan which is giving Cyclic parent-child relationship detected in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/recover-folder-from-trashcan-which-is-giving-cyclic-parent-child/m-p/95295#M28055</link>
    <description>&lt;P&gt;Hi Angel&lt;/P&gt;&lt;P&gt;Thanks for the pointer, Axel helped me as well, here is the process for anybody else who hits this issue.&lt;/P&gt;&lt;P&gt;to fix the cyclic error, create a new folder and delete it so its available in archive.&lt;/P&gt;&lt;P&gt;the use the id of this folder as the parent_node_id of the culprit node giving the error in nodebrowser.&lt;/P&gt;&lt;P&gt;update alf_child_assoc set parent_node_id = &amp;lt;id of new folder&amp;gt; where id = &amp;lt;id of node erroring in nodebrowser&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://media.discordapp.net/attachments/471285144687345665/686882680201150471/unknown.png?width=2880&amp;amp;height=937" border="0" /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Mar 2020 11:30:10 GMT</pubDate>
    <dc:creator>digcat</dc:creator>
    <dc:date>2020-03-10T11:30:10Z</dc:date>
    <item>
      <title>Recover folder from trashcan which is giving Cyclic parent-child relationship detected</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/recover-folder-from-trashcan-which-is-giving-cyclic-parent-child/m-p/95293#M28053</link>
      <description>&lt;DIV class="message-2qnXI6 cozyMessage-3V1Y8y groupStart-23k01U wrapper-2a6GCs cozy-3raOZG zalgo-jN1Ica"&gt;&lt;DIV class="contents-2mQqc9"&gt;&lt;DIV class="markup-2BOw-j messageContent-2qWWxC"&gt;hi all,&lt;/DIV&gt;&lt;DIV class="markup-2BOw-j messageContent-2qWWxC"&gt;Ive had a bizarre error today on an old 5.0.d server, somehow a user has created a Cyclic parent-child relationship detected, by Node has been pasted into its own tree. and then they deleted it.&amp;nbsp; Now they want to recover it&amp;nbsp; But the trashcan is giving an error (error loading items),&lt;/DIV&gt;&lt;DIV class="markup-2BOw-j messageContent-2qWWxC"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="markup-2BOw-j messageContent-2qWWxC"&gt;ERROR [node.ibatis.NodeDAOImpl$MySQL] [ajp-bio-8009-exec-10] Cyclic parent-child relationship detected:&lt;BR /&gt;current node: 2355329&lt;BR /&gt;current path: {&lt;A href="http://www.alfresco.org/model/content/1.0}New_x0020_Folder_x0020_With_x0020_Items/{http://www.alfresco.org/model/content/1.0}Current/{http://www.alfresco.org/model/content/1.0}Properties/{http://www.alfresco.org/model/content/1.0}_x0032_2_x0020_Lindale_x0020_Street_x002c__x0020_Chermside/{http://www.alfresco.org/model/content/1.0}Lindale_x0020_Applications_x0020_.xlsx.sb-a981f572-OQtL3y" target="_blank" rel="noopener nofollow noreferrer"&gt;http://www.alfresco.org/model/content/1.0}New_x0020_Folder_x0020_With_x0020_Items/{http://www.alfresco.org/model/content/1.0}Current/{http://www.alfresco.org/model/content/1.0}Properties/{http://www.alfresco.org/model/content/1.0}_x0032_2_x0020_Lindale_x0020_Street_x002c__x0020_Chermside/{http://www.alfresco.org/model/content/1.0}Lindale_x0020_Applications_x0020_.xlsx.sb-a981f572-OQtL3y&lt;/A&gt;&lt;BR /&gt;next assoc: 2119453&lt;BR /&gt;2020-03-10 02:21:21,772 ERROR [node.archive.NodeArchiveServiceImpl] [ajp-bio-8009-exec-10] An unhandled exception stopped the restore&lt;BR /&gt;org.alfresco.service.cmr.repository.CyclicChildRelationshipException: Node has been pasted into its own tree.&lt;/DIV&gt;&lt;DIV class="markup-2BOw-j messageContent-2qWWxC"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="markup-2BOw-j messageContent-2qWWxC"&gt;Ive located the suspect archived node using jsconsole, then can display the noderef in node browser, and can see the folder has same parent name, which im assuming is the cyclic error.&amp;nbsp; My question is, is it possible to fix this cyclic error, using jsconsole, or is it doomed, and Id need to pick the content out from the stores directly? and how the heck did they cause an error which trips up the trashcan with a error loading items error.&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="buttonContainer-DHceWr"&gt;&lt;DIV class="buttons-cl5qTG container-3npvBV isHeader-2dII4U"&gt;&lt;DIV class="wrapper-2aW0bm"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="message-2qnXI6 cozyMessage-3V1Y8y wrapper-2a6GCs cozy-3raOZG zalgo-jN1Ica"&gt;&lt;DIV class="contents-2mQqc9"&gt;&lt;DIV class="markup-2BOw-j messageContent-2qWWxC"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="markup-2BOw-j messageContent-2qWWxC"&gt;I located the error code in src, &lt;A title="https://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/repository/source/java/org/alfresco/repo/domain/node/AbstractNodeDAOImpl.java" href="https://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/repository/source/java/org/alfresco/repo/domain/node/AbstractNodeDAOImpl.java" target="_blank" rel="noreferrer noopener nofollow"&gt;https://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/repository/source/java/org/alfresco/repo/domain/node/AbstractNodeDAOImpl.java&lt;/A&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="buttonContainer-DHceWr"&gt;&lt;DIV class="buttons-cl5qTG container-3npvBV"&gt;&lt;DIV class="wrapper-2aW0bm"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="message-2qnXI6 cozyMessage-3V1Y8y wrapper-2a6GCs cozy-3raOZG zalgo-jN1Ica"&gt;&lt;DIV class="contents-2mQqc9"&gt;&lt;DIV class="markup-2BOw-j messageContent-2qWWxC"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="markup-2BOw-j messageContent-2qWWxC"&gt;oh and I also tried sending a PUT to the archive service to recover that way, but that also triggered the cyclic error using the curl command in this post&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="buttonContainer-DHceWr"&gt;&lt;DIV class="buttons-cl5qTG container-3npvBV"&gt;&lt;DIV class="wrapper-2aW0bm"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="message-2qnXI6 cozyMessage-3V1Y8y wrapper-2a6GCs cozy-3raOZG zalgo-jN1Ica"&gt;&lt;DIV class="contents-2mQqc9"&gt;&lt;DIV class="markup-2BOw-j messageContent-2qWWxC"&gt;&amp;nbsp;&lt;A title="https://hub.alfresco.com/t5/ecm-archive/solved-recover-a-deleted-site/m-p/10684" href="https://hub.alfresco.com/t5/ecm-archive/solved-recover-a-deleted-site/m-p/10684" target="_blank" rel="noreferrer noopener nofollow"&gt;https://hub.alfresco.com/t5/ecm-archive/solved-recover-a-deleted-site/m-p/10684&lt;/A&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 09 Mar 2020 16:45:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/recover-folder-from-trashcan-which-is-giving-cyclic-parent-child/m-p/95293#M28053</guid>
      <dc:creator>digcat</dc:creator>
      <dc:date>2020-03-09T16:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Recover folder from trashcan which is giving Cyclic parent-child relationship detected</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/recover-folder-from-trashcan-which-is-giving-cyclic-parent-child/m-p/95294#M28054</link>
      <description>&lt;P&gt;You can amend the parent node in the database or using JConsole before recovering. Is this an option?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 08:59:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/recover-folder-from-trashcan-which-is-giving-cyclic-parent-child/m-p/95294#M28054</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2020-03-10T08:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Recover folder from trashcan which is giving Cyclic parent-child relationship detected</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/recover-folder-from-trashcan-which-is-giving-cyclic-parent-child/m-p/95295#M28055</link>
      <description>&lt;P&gt;Hi Angel&lt;/P&gt;&lt;P&gt;Thanks for the pointer, Axel helped me as well, here is the process for anybody else who hits this issue.&lt;/P&gt;&lt;P&gt;to fix the cyclic error, create a new folder and delete it so its available in archive.&lt;/P&gt;&lt;P&gt;the use the id of this folder as the parent_node_id of the culprit node giving the error in nodebrowser.&lt;/P&gt;&lt;P&gt;update alf_child_assoc set parent_node_id = &amp;lt;id of new folder&amp;gt; where id = &amp;lt;id of node erroring in nodebrowser&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://media.discordapp.net/attachments/471285144687345665/686882680201150471/unknown.png?width=2880&amp;amp;height=937" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 11:30:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/recover-folder-from-trashcan-which-is-giving-cyclic-parent-child/m-p/95295#M28055</guid>
      <dc:creator>digcat</dc:creator>
      <dc:date>2020-03-10T11:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Recover folder from trashcan which is giving Cyclic parent-child relationship detected</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/recover-folder-from-trashcan-which-is-giving-cyclic-parent-child/m-p/95296#M28056</link>
      <description>&lt;P&gt;make sure to restart after making the change to the database !!!!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 11:32:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/recover-folder-from-trashcan-which-is-giving-cyclic-parent-child/m-p/95296#M28056</guid>
      <dc:creator>digcat</dc:creator>
      <dc:date>2020-03-10T11:32:53Z</dc:date>
    </item>
  </channel>
</rss>

