<?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 Uploading multiple files - randomly throws 'Node does not exist' exception in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/uploading-multiple-files-randomly-throws-node-does-not-exist/m-p/290794#M243924</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an issue with uploading multiple files using Alfresco Share (Alfresco Enterprise 3.4.9, Windows 7 Enterprise) regarding the inexistence of the node in repository which its content I'm uploading.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The contents of the uploaded files are stored in a "customized" content store (extends org.alfresco.repo.content.AbstractContentStore). The "customized" content store is in fact an interface to a WORM (Write-Once-Read-Many) Storage System and it use the HTTP/S to communicate with it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem appears randomly, only when I'm uploading a large number of files (about ~457 - each file having ~3 MB size). The location where the error occurs is on the "content stream closing" method (implementation of org.alfresco.service.cmr.repository.ContentStreamListener.contentStreamClosed). In this method, I have to do some extra operations to the newly uploaded content to the "WORM" storage, such as: adding some custom-metadata, set content retention etc. The data are retrieved from the node properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The odd thing is, even the Share tells me that the document has failed to upload, the content and its "WORM" metadata are set OK and I can access it from Share/Explore without any problem - I belive there is a retrying sequence in case of errors … (I noticed in the log file that the "content stream closing" method is called twice ..).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, what can be the reason of this behavior?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The complete scenario of uploading files is bellow:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Create a space having associated a content rule that executes a web script. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The web scripts set some metadata to a custom aspect of ours and attaches it to the current document (node). The custom aspect triggers further the attachment of the "cm:storeSelector" aspect having a specific store name set …&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Start upload the multiple files to the above space …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Attached are the alfresco log file and the web script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Emil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Jun 2013 09:53:45 GMT</pubDate>
    <dc:creator>eu_81</dc:creator>
    <dc:date>2013-06-20T09:53:45Z</dc:date>
    <item>
      <title>Uploading multiple files - randomly throws 'Node does not exist' exception</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/uploading-multiple-files-randomly-throws-node-does-not-exist/m-p/290794#M243924</link>
      <description>Hello,I have an issue with uploading multiple files using Alfresco Share (Alfresco Enterprise 3.4.9, Windows 7 Enterprise) regarding the inexistence of the node in repository which its content I'm uploading.The contents of the uploaded files are stored in a "customized" content store (extends org.al</description>
      <pubDate>Thu, 20 Jun 2013 09:53:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/uploading-multiple-files-randomly-throws-node-does-not-exist/m-p/290794#M243924</guid>
      <dc:creator>eu_81</dc:creator>
      <dc:date>2013-06-20T09:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading multiple files - randomly throws 'Node does not exist' exception</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/uploading-multiple-files-randomly-throws-node-does-not-exist/m-p/290795#M243925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sounds like a concurrency bug.&amp;nbsp; Or incorrect rollback handling.&amp;nbsp;&amp;nbsp; Have you tried calling Alfresco Support?&amp;nbsp;&amp;nbsp; On one hand they may not be able to help if the bug is due to your custom code,&amp;nbsp; however I've got a dim memory that there have been a few of these sort of bugs fixed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2013 13:48:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/uploading-multiple-files-randomly-throws-node-does-not-exist/m-p/290795#M243925</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2013-06-20T13:48:00Z</dc:date>
    </item>
  </channel>
</rss>

