Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Purge final version of an asset

Avatar

Avatar
Level 1
NickCarballo
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
NickCarballo
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
NickCarballo
Level 1

02-11-2020

I am attempting to delete all versions(except the root version) of an asset using a task.

I am using VersionHistory API to remove the version.  It works for all of the versions except for the last one. 

 

I keep getting this error: 

OakIntegrity0001: Unable to delete referenced node

Is there a way to remove final version of the asset?

View Entire Topic

Avatar

Avatar
Give Back 5
Employee
sunjot16
Employee

Likes

105 likes

Total Posts

164 posts

Correct Reply

50 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 25
Give Back 10
Give Back
View profile

Avatar
Give Back 5
Employee
sunjot16
Employee

Likes

105 likes

Total Posts

164 posts

Correct Reply

50 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 25
Give Back 10
Give Back
View profile
sunjot16
Employee

02-11-2020

Cause:

Inconsistencies in oak:index/references. This can be caused by using external methods to modify content in the JCR

 
Solution:
Perform reindex for the synchronous indexes of /oak:index/reference