내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

Purge final version of an asset

Avatar

Level 1

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?

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Employee

I think it is not possible to delete the base version node that is there in the jcr:baseVersion property of the asset. Removing version via VersionHistory can throw an exception [1]

 

[1] https://docs.adobe.com/docs/en/spec/jsr170/javadocs/jcr-2.0/javax/jcr/version/VersionHistory.html#re...)

원본 게시물의 솔루션 보기

4 답변 개

Avatar

Employee

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
 

Avatar

Level 1
Thank you for your reply! I updated my question to note that I am using VersionHistory API to remove versions. It works for removing all versions except for the last one. What are you referring to when you say "external methods"?

Avatar

Community Advisor
Can you please give your code snippet here

Avatar

정확한 답변 작성자:
Employee

I think it is not possible to delete the base version node that is there in the jcr:baseVersion property of the asset. Removing version via VersionHistory can throw an exception [1]

 

[1] https://docs.adobe.com/docs/en/spec/jsr170/javadocs/jcr-2.0/javax/jcr/version/VersionHistory.html#re...)