<?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 creating versions in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/error-creating-versions/m-p/56798#M20536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For our custom project - (Using Alfresco 5.2.3)&lt;/P&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;Have a requirement to&amp;nbsp;export all the versions of the document and then import at another repository.&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;Exports are fine but when we tried to import with all the&amp;nbsp;versions, it is failing.&amp;nbsp;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;For Eg.&amp;nbsp;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;if the exported content has 3 versions (v1, v2 and v3). During import process we are trying to create base version node and then creating node for all other versions. while&amp;nbsp;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;creating base node that is v1, it was created successfully. while creating node for v2, we are getting below error.&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;&lt;DIV style="font-size: small;"&gt;Error:&lt;/DIV&gt;&lt;DIV style="font-size: small;"&gt;org.alfresco.service.cmr.version.VersionServiceException: 07129796 The current version label of the node does not exist in the version history.&lt;/DIV&gt;&lt;DIV style="font-size: small;"&gt; &lt;/DIV&gt;&lt;DIV style="font-size: small;"&gt;Exception :&lt;/DIV&gt;&lt;DIV style="font-size: small;"&gt;&lt;PRE class="" style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;org.alfresco.service.cmr.version.VersionServiceException: 07129796 The current version label of the node does not exist in the version history. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.repo.version.Version2ServiceImpl.createVersion(Version2ServiceImpl.java:267) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.repo.version.Version2ServiceImpl.createVersion_aroundBody2(Version2ServiceImpl.java:141) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.repo.version.Version2ServiceImpl$AjcClosure3.run(Version2ServiceImpl.java:1)&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;Code from where it fails:&lt;/P&gt;&lt;P&gt;Map&amp;lt;String, Serializable&amp;gt; versionProperties = new HashMap&amp;lt;String, Serializable&amp;gt; ();&lt;BR /&gt; versionProperties.put(VersionModel.PROP_VERSION_TYPE, VersionType.MAJOR);&lt;BR /&gt; versionProperties.put(Version.PROP_DESCRIPTION,"versioned");&lt;BR /&gt; versionService.createVersion(baseNode, versionProperties) ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Aug 2018 14:31:34 GMT</pubDate>
    <dc:creator>ranjeetsi</dc:creator>
    <dc:date>2018-08-17T14:31:34Z</dc:date>
    <item>
      <title>Error creating versions</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-creating-versions/m-p/56798#M20536</link>
      <description>For our custom project - (Using Alfresco 5.2.3)Have a requirement to&amp;nbsp;export all the versions of the document and then import at another repository.Exports are fine but when we tried to import with all the&amp;nbsp;versions, it is failing.&amp;nbsp; For Eg.&amp;nbsp;if the exported content has 3 versions (v1, v2 and v3). Durin</description>
      <pubDate>Fri, 17 Aug 2018 14:31:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-creating-versions/m-p/56798#M20536</guid>
      <dc:creator>ranjeetsi</dc:creator>
      <dc:date>2018-08-17T14:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating versions</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-creating-versions/m-p/56799#M20537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone please suggest in this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2018 23:25:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-creating-versions/m-p/56799#M20537</guid>
      <dc:creator>ranjeetsi</dc:creator>
      <dc:date>2018-08-23T23:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating versions</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-creating-versions/m-p/56800#M20538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ranjeet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replying a bit late but can you try the below before your code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;versionService.ensureVersioningEnabled(nodeRef, null);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2018 11:41:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-creating-versions/m-p/56800#M20538</guid>
      <dc:creator>hiten_rastogi1</dc:creator>
      <dc:date>2018-09-28T11:41:26Z</dc:date>
    </item>
  </channel>
</rss>

