<?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 changing metatdata of a document straight after upload in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/error-changing-metatdata-of-a-document-straight-after-upload/m-p/240692#M193822</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Experts,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to hear from people who have come accross the javascript error below and also understand how you resolved it (if anyone managed to):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;Wrapped org.springframework.orm.hibernate3.HibernateOptimisticLockingFailureException: Object of class [org.alfresco.repo.domain.hibernate.NodeImpl] with identifier [18869]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.alfresco.repo.domain.hibernate.NodeImpl#18869]&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;My actions are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I create a custom button in the document toolbar that calls a custom action for a single file upload which then calls a webscript when successful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I try to change metadata and save the recently uploaded document within the webscript and this is where I encounter this error. I have confirmend that the error is not related to the changes I make to the document.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suspect this has something to do with transaction management in Alfresco. Any information would be highly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AmarG&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Oct 2010 23:22:40 GMT</pubDate>
    <dc:creator>amarg</dc:creator>
    <dc:date>2010-10-25T23:22:40Z</dc:date>
    <item>
      <title>Error changing metatdata of a document straight after upload</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-changing-metatdata-of-a-document-straight-after-upload/m-p/240692#M193822</link>
      <description>Hello Experts,I would like to hear from people who have come accross the javascript error below and also understand how you resolved it (if anyone managed to):Wrapped org.springframework.orm.hibernate3.HibernateOptimisticLockingFailureException: Object of class [org.alfresco.repo.domain.hibernate.No</description>
      <pubDate>Mon, 25 Oct 2010 23:22:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-changing-metatdata-of-a-document-straight-after-upload/m-p/240692#M193822</guid>
      <dc:creator>amarg</dc:creator>
      <dc:date>2010-10-25T23:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error changing metatdata of a document straight after upload</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-changing-metatdata-of-a-document-straight-after-upload/m-p/240693#M193823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not sure, buy have you tried to save the document before change the metadata, then change it, and then save it again? Some time ago I have a similar problem, and that was the key&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 15:34:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-changing-metatdata-of-a-document-straight-after-upload/m-p/240693#M193823</guid>
      <dc:creator>palba</dc:creator>
      <dc:date>2010-10-26T15:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error changing metatdata of a document straight after upload</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-changing-metatdata-of-a-document-straight-after-upload/m-p/240694#M193824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have tried that palba and this had not worked. Regardless of whether I change anything, I get an error when I call doc.save().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The interesting thing about this issue is that, although I do get an error message, all the changes happen as expected i.e. the metadata gets updated after the script.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 22:12:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-changing-metatdata-of-a-document-straight-after-upload/m-p/240694#M193824</guid>
      <dc:creator>amarg</dc:creator>
      <dc:date>2010-10-26T22:12:44Z</dc:date>
    </item>
  </channel>
</rss>

