Hi!
As a test case I tried to import a 3.5.9 exported space into 3.5.17.
We had exported say SPACE1 from our production system and changed entities.xml according to
https://confluence.atlassian.com/display/CONF35/Copy+Or+Rename+A+Space
The import into our production 3.5.9 as say SPACE2 worked perfectly.
When I do the same with 3.5.17 (last 3.5.x) it fails with
Import failed. Check your server logs for more information.
Hibernate operation: could not insert: [com.atlassian.confluence.labels.Labelling#720969];
SQL []; Violation of PRIMARY KEY constraint 'PK__CONTENT___3214EC27FB627BCE'.
Cannot insert duplicate key in object 'dbo.CONTENT_LABEL'.
The duplicate key value is (720969).; nested exception is java.sql.SQLException:
Violation of PRIMARY KEY constraint 'PK__CONTENT___3214EC27FB627BCE'.
Cannot insert duplicate key in object 'dbo.CONTENT_LABEL'. The duplicate key value is (720969).
Back end is a SQL Server 2012.
Thx
G.
Well, the simple, but sad thing is:
3.5.9 and the last 3.5.x (3.5.17) are NOT compatible in some respect. Space import into the EXACTLY same version worked. <sigh>
This is really disturbing!
Just tried the import of the space on a 3.5.9 install (the exact version we are at) and it went without a hitch!
So apparently Confluence space import is NOT even compatible on a revision level!
Your understanding (documentation) of major and minor versions and revision levels is "interesting" too.
Some insight would be appreciated.
G.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi G,
Can you confirm whether you are using a case-sensitive collation scheme for your SQL Server database because this is the most common cause of issues such as this one? We recommend usingthe "SQL_Latin1_General_CP1_CS_AS" collation scheme, so if you are not using this scheme then please run the SQL below to convert the collation scheme of your database.
ALTER DATABASE <database_name> COLLATE SQL_Latin1_General_CP1_CS_AS
All the best,
John
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the attempt, John,
I m not at my workplace, but I m positive that I got a case sensitive collation exactly with the above command.
But if you had had a single thoughtful glance at the error message you would have seen that the key is an integer field.
G.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.