Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

XML Export/Import - What am I doing wrong?

David Haynes
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 31, 2018

I have a number of spaces that I am attempting to consolidate into one space (yahoo! corporate restructuring!)

Something is not working with my methodology for doing this. I am doing the following:

  1. In the source space, Space Tools -> Content Tools -> Export
  2. Select XML and do either type of export
  3. Check that the zip file has been created. File is in the form 'Confluence-space-export-090512-10.xml.zip'
  4. In the destination space, Space Tools -> Content Tools -> Import
  5. Provide the path to the temp directory
  6. The import fails

Looking at the atlassian-confluence.log, I am getting an index out of bounds exception:

2018-01-31 09:26:34,325 ERROR [http-nio-8443-exec-12] [confluence.spaces.actions.ImportPagesAction] execute An error occurred importing: /var/atlassian/application-data/confluence/temp/Confluence-space-export-092549-8.xml.zip
 -- space: 29229057 | url: /spaces/doimportpages.action | traceId: f45ea36c4c8c9666 | userName: admin | referer: https://confluence.cbts.cinbell.com/spaces/importpages.action?key=DTS | action: doimportpages
java.lang.RuntimeException: org.owasp.validator.html.ScanException: java.lang.ArrayIndexOutOfBoundsException: 1

I get the same issue with version 6.2.3 and 6.7.0.

 

Am I doing something wrong? If so, what do you recommend?

2 answers

1 accepted

0 votes
Answer accepted
Thomas Deiler
Community Champion
January 31, 2018

Dear @David Haynes,

for the re-import, you have to jump to General Configuration -> Backup & Restore. There you can import a XML dump.

The import within the space is for text files only.

so long

Thomas

Thomas Deiler
Community Champion
January 31, 2018

Note: If you just plan to consolidate different pages on one Confluence instance, you could move the pages within the spaces instead of export/import. The upper answer is useful for re-importing on a different instance.

0 votes
David Haynes
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 31, 2018

Thanks @Thomas Deiler

I had tried the copy/move method before but not as the administrator (although I had admin rights in both spaces). Either I botched it somehow (likely) or was restricted for some reason.

Anyway, going in as 'admin' allows me to copy/move between spaces.

That 'export with one method' and 'import with another' seems a bit odd to me.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events