When XPSSweeper command was performed, below error occurred.
ã€€(ERROR) : [sm-xpsxps-00670] Duplicate entry detected.
ã€€(ERROR) : [sm-xpsxps-04530] Failed to create key for CA.SM::[email protected](noprotect_fortest)
It is caused by duplicate ObjectClass xpsKey.
xpsKey entry is intended to prevent duplicate names. However, in reality, this is of no practical value, because before storing an object into the Policy Store, one of validation tasks checks uniqueness of name.
The objectclass xpsKey has been phased out and removed completerly in 12.6 version as this ObjectClass is not needed.
If you encountered the error in older release, you will need to manually remove all the indexes (i.e. ObjectCalss=xpsKey) from the policy store.
Please refer to below document.