Closing as a duplicate of XWIKI-6161, which reports the same defect: same org.hibernate.NonUniqueObjectException on XWikiRCSNodeInfo, same resetRCSArchive → updateXWikiDocArchive → saveXWikiDocArchive path.
The two issues coexisted because XWIKI-6161 was restricted to pages "without history", while this one reports a page with several versions. A retest on XWiki 18.7.0 shows that distinction no longer exists: the reset action fails on a brand new page with only 1.1, on a new page with several versions, on an untouched bundled XS page and on an edited one alike, all with the identical stack. The detailed retest is in XWIKI-6161, whose summary has been broadened accordingly.
My 2024-04-18 note above about Document.getDoc().resetArchive(...) and the old importer's "reset history" option has been carried over to XWIKI-6161 so it isn't lost.
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.