08-17-2018 10:31 AM
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) ;
08-23-2018 07:25 PM
Can anyone please suggest in this.
09-28-2018 07:41 AM
Hi Ranjeet,
Replying a bit late but can you try the below before your code
versionService.ensureVersioningEnabled(nodeRef, null);
Explore our Alfresco products with the links below. Use labels to filter content by product module.