For our custom project - (Using Alfresco 5.2.3)
org.alfresco.service.cmr.version.VersionServiceException: 07129796 The current version label of the node does not exist in the version history. at org.alfresco.repo.version.Version2ServiceImpl.createVersion(Version2ServiceImpl.java:267) at org.alfresco.repo.version.Version2ServiceImpl.createVersion_aroundBody2(Version2ServiceImpl.java:141) at org.alfresco.repo.version.Version2ServiceImpl$AjcClosure3.run(Version2ServiceImpl.java:1)
Code from where it fails:
Map<String, Serializable> versionProperties = new HashMap<String, Serializable> ();
versionProperties.put(VersionModel.PROP_VERSION_TYPE, VersionType.MAJOR);
versionProperties.put(Version.PROP_DESCRIPTION,"versioned");
versionService.createVersion(baseNode, versionProperties) ;
Can anyone please suggest in this.
Hi Ranjeet,
Replying a bit late but can you try the below before your code
versionService.ensureVersioningEnabled(nodeRef, null);
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.