<?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 Error when delete files in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/error-when-delete-files/m-p/107063#M30190</link>
    <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;We have installed ACS and we when we try to delete some files inside a Document Library, after waiting for a while just can't. At the log file shows the following:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="error_alfresco.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/528iB399AF715E5B9380/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;the error is this:&amp;nbsp;&lt;STRONG&gt;org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I need to know why this happens (is not just with one file, there are a lot) and how to delete those files. Any thoughs? Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2020 17:38:07 GMT</pubDate>
    <dc:creator>LuchoRod</dc:creator>
    <dc:date>2020-03-31T17:38:07Z</dc:date>
    <item>
      <title>Error when delete files</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-when-delete-files/m-p/107063#M30190</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;We have installed ACS and we when we try to delete some files inside a Document Library, after waiting for a while just can't. At the log file shows the following:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="error_alfresco.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/528iB399AF715E5B9380/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;the error is this:&amp;nbsp;&lt;STRONG&gt;org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I need to know why this happens (is not just with one file, there are a lot) and how to delete those files. Any thoughs? Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 17:38:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-when-delete-files/m-p/107063#M30190</guid>
      <dc:creator>LuchoRod</dc:creator>
      <dc:date>2020-03-31T17:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error when delete files</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-when-delete-files/m-p/107064#M30191</link>
      <description>&lt;P&gt;Well it seems you have more than one node with the same nodeRef, could it be possible? Did you import nodes in some way? You should detect the repeated nodes and delete them separately.&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 06:36:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-when-delete-files/m-p/107064#M30191</guid>
      <dc:creator>narkuss</dc:creator>
      <dc:date>2020-04-01T06:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error when delete files</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-when-delete-files/m-p/107065#M30192</link>
      <description>&lt;P&gt;We just upload file through &lt;STRONG&gt;Alfresco Share&lt;/STRONG&gt;, how do i know about the repeated nodes?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 15:27:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-when-delete-files/m-p/107065#M30192</guid>
      <dc:creator>LuchoRod</dc:creator>
      <dc:date>2020-04-01T15:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error when delete files</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-when-delete-files/m-p/107066#M30193</link>
      <description>&lt;P&gt;You can check the nodeId of your files acessing the document-details. Then you will find the nodeId at the end of the url:&lt;/P&gt;&lt;PRE&gt;&amp;lt;url&amp;gt;/document-details?nodeRef=workspace://SpacesStore/9c8d15bf-75d8-4c0a-ab1c-bed62151df8e&lt;/PRE&gt;&lt;P&gt;To automate this process, you could use the &lt;A href="https://github.com/share-extras/js-console" target="_blank" rel="noopener nofollow noreferrer"&gt;javascript-console&lt;/A&gt; addon. Use below code to get all the nodeIds and names from all the documents in the folder:&lt;/P&gt;&lt;PRE&gt;var parent = search.findNode("your-folder-nodeRef");
parent.children.forEach(function(c) {
	logger.log("nodeId: " + c.getId() + " Filename: " + c.getName());
}, this);&lt;/PRE&gt;&lt;P&gt;Where "your-folder-nodeRef" must be substituted by the parent folder nodeRef.&lt;/P&gt;&lt;P&gt;Use this code as a base to check repeated nodeRefs in case there are lots of files.&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 17:58:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-when-delete-files/m-p/107066#M30193</guid>
      <dc:creator>narkuss</dc:creator>
      <dc:date>2020-04-01T17:58:15Z</dc:date>
    </item>
  </channel>
</rss>

