<?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: How to delete file link force in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-delete-file-link-force/m-p/35287#M14880</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;logs complain about: &lt;/P&gt;&lt;PRE&gt;&amp;nbsp; [web.scripts.ActionEvaluatorHelper] Evaluator 'null' not found.&lt;/PRE&gt;&lt;P&gt;Propably,&amp;nbsp; I had &lt;A _jive_internal="true" href="https://community.alfresco.com/thread/239083-create-link-to-node-or-folder-using-js" rel="nofollow noopener noreferrer"&gt;created through javascript some links nodes &lt;/A&gt;without adding the "app:linked" aspect to the source node. So when I deleted the source node, the destination property was empty. That seems to cause the above warning, and errors while previewing folder from share (empty folder, "&lt;SPAN class="" lang="en"&gt;&lt;SPAN&gt;loading Document Library ..."). &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="display: none;"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using javascript, I set the destination property, using the name, e.g.&lt;/P&gt;&lt;PRE&gt;var user_home = companyhome.childByNamePath("User Homes/test"); // some folder&lt;BR /&gt;for (var i = 0; i&amp;lt; user_home.getChildren().length; i++) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if (user_home.getChildren()[i].name.endsWith( "link.url") )&amp;nbsp; { //my links had the same prefix&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;user_home.getChildren()[i].properties["cm:destination"]&amp;nbsp; = "workspace://SpacesStore/adc38ba8-e5a9-4ce3-b323-03a3967fba84";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;user_home.getChildren()[i].save();&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;and then managed to delete this links.&lt;/P&gt;&lt;P&gt;It seems that creating links using javascript is prone to errors, if the code is as the one at &lt;A href="https://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/repository/source/java/org/alfresco/repo/doclink/" rel="nofollow noopener noreferrer"&gt;DocumentLinkServiceImpl.java&lt;/A&gt; .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Oct 2018 12:56:53 GMT</pubDate>
    <dc:creator>mtsiak</dc:creator>
    <dc:date>2018-10-18T12:56:53Z</dc:date>
    <item>
      <title>How to delete file link force</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-delete-file-link-force/m-p/35283#M14876</link>
      <description>Hi,There's a problem in Alfresco community 5.2.&amp;nbsp;I found some file links whose destination is NULL, and try to delete those, but failed."Force delete" on nodebroser doesn't work with below error.050729912 Property 'nodeRef' has not been set: org.alfresco.repo.doclink.DocumentLinkServiceImpl@46666a9c</description>
      <pubDate>Wed, 07 Jun 2017 12:23:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-delete-file-link-force/m-p/35283#M14876</guid>
      <dc:creator>koichinakata</dc:creator>
      <dc:date>2017-06-07T12:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete file link force</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-delete-file-link-force/m-p/35284#M14877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anybody know how to remove remained link without error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 02:12:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-delete-file-link-force/m-p/35284#M14877</guid>
      <dc:creator>koichinakata</dc:creator>
      <dc:date>2017-06-29T02:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete file link force</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-delete-file-link-force/m-p/35285#M14878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting the same error. Have anyone found any solutions? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 11:43:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-delete-file-link-force/m-p/35285#M14878</guid>
      <dc:creator>mtsiak</dc:creator>
      <dc:date>2018-10-18T11:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete file link force</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-delete-file-link-force/m-p/35286#M14879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you see in the logs when you try to delete it?&lt;/P&gt;&lt;P&gt;Can you post the full stack trace?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One idea would be to set a "fake" destination pointing to some existing document and then trying to delete the link.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 12:27:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-delete-file-link-force/m-p/35286#M14879</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2018-10-18T12:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete file link force</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-delete-file-link-force/m-p/35287#M14880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;logs complain about: &lt;/P&gt;&lt;PRE&gt;&amp;nbsp; [web.scripts.ActionEvaluatorHelper] Evaluator 'null' not found.&lt;/PRE&gt;&lt;P&gt;Propably,&amp;nbsp; I had &lt;A _jive_internal="true" href="https://community.alfresco.com/thread/239083-create-link-to-node-or-folder-using-js" rel="nofollow noopener noreferrer"&gt;created through javascript some links nodes &lt;/A&gt;without adding the "app:linked" aspect to the source node. So when I deleted the source node, the destination property was empty. That seems to cause the above warning, and errors while previewing folder from share (empty folder, "&lt;SPAN class="" lang="en"&gt;&lt;SPAN&gt;loading Document Library ..."). &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="display: none;"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using javascript, I set the destination property, using the name, e.g.&lt;/P&gt;&lt;PRE&gt;var user_home = companyhome.childByNamePath("User Homes/test"); // some folder&lt;BR /&gt;for (var i = 0; i&amp;lt; user_home.getChildren().length; i++) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if (user_home.getChildren()[i].name.endsWith( "link.url") )&amp;nbsp; { //my links had the same prefix&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;user_home.getChildren()[i].properties["cm:destination"]&amp;nbsp; = "workspace://SpacesStore/adc38ba8-e5a9-4ce3-b323-03a3967fba84";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;user_home.getChildren()[i].save();&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;and then managed to delete this links.&lt;/P&gt;&lt;P&gt;It seems that creating links using javascript is prone to errors, if the code is as the one at &lt;A href="https://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/repository/source/java/org/alfresco/repo/doclink/" rel="nofollow noopener noreferrer"&gt;DocumentLinkServiceImpl.java&lt;/A&gt; .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 12:56:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-delete-file-link-force/m-p/35287#M14880</guid>
      <dc:creator>mtsiak</dc:creator>
      <dc:date>2018-10-18T12:56:53Z</dc:date>
    </item>
  </channel>
</rss>

