Hi, I'm trying to upgrade from XWiki 3.1 to 4.4, but I'm having problems with the data migration process. It all goes well up until R40000XWIKI6990, which fails due to a duplicate key (see below, full Tomcat log also attached). It also fails with safemode enabled. ERROR o.h.u.JDBCExceptionReporter - ERROR: duplicate key value violates unique constraint "xwikidoc_pkey" I've tried running SQL commands from XWIKI-8129 [1] jira issue too, but it doesn't apply any modification in my case. So it doesn't make any difference. Older version of XWiki in-between also fail. The system set up is: Fedora 14 (x86_64) Java 1.6.0_20 -- OpenJDK Runtime Environment (IcedTea6 1.9.10) Tomcat 6 PostgreSQL 8.4.9 XWiki 3.1 (upgraded from 2.2.1 and with no configuration options changes) Any idea of how to solve this problem? Thanks, Àlex [1] http://jira.xwiki.org/browse/XWIKI-8129