Export space as xml corrupted archive
Asked by Samuel Parker:

Hi,

I'm trying to export a space as an xml file for importing into another environment and it is giving me a corrupted archive, I've tried several different programs to unpack the file and it throws errors everytime, I've tried to import the zip file and it breaks, anyone else have this issue or no what to do?

The file is about 3GB


Answers:
author: Samuel Parker
body: So it appears this issue was caused by the file not downloading properly, I tried with several browsers to no avail, I had to get a teammate to download it and send me the file. It then worked after that.

I'm not sure why I couldn't download it but I have raised a support request about it, thanks for your help [@repi](/t5/user/viewprofilepage/user-id/302600)


author: repi
body: [@Samuel Parker](/t5/user/viewprofilepage/user-id/3998240)

Is there an error message in addition to errors?  
Can the new confluence instance import the file?

comments: author: Samuel Parker
body: [@repi](/t5/user/viewprofilepage/user-id/302600) No it seems to be working fine when I do the export, no it cant do the import because I only have a zip file, which I cant unpack.

If I try to import the zip it just says

* There was an error during import. Please see our guide to raising a bug report.


author: repi
body: Can you repeat the export from the original confluence instance again?  
Which version is the confluence from which you started the export and which version is the target confluence?

Troubleshooting {#toc-hId--1328582747}
--------------------------------------

If you have problems importing a space, check out these hints.

* **Is your file too large to upload?**   
  This is a very common problem. It happens when the file can't be uploaded to the server in time. To avoid this problem, drop your export file into the `<confluence-home>/restore` directory and import it from there.
* **Are you trying to import into an earlier version of Confluence?**   
  This is not possible. You can only import a space into the same version or a later compatible version.
* **Is your space export file from Confluence Cloud?**   
  You can only import this file into Confluence 6.0 or later. Trying to import into earlier versions can cause major problems. See [Import a space from Confluence Cloud](https://confluence.atlassian.com/doc/import-a-space-from-confluence-cloud-967876449.html) for other considerations.
* **Does a space with the same space key already exist?**   
  Space keys are unique, so if you already have a space with the same key, you'll need to delete the existing space before importing the new one.
* **Is the import timing-out or causing out of memory errors?**   
  If the space to be imported is very large, you may need to temporarily increase the memory available to Confluence. See [How to fix out of memory errors by increasing available memory](https://confluence.atlassian.com/confkb/how-to-fix-out-of-memory-errors-by-increasing-available-memory-154071.html).
* **Did you download the export file on a Mac?**   
  If you get an error saying that Confluence can't find the `exportDescriptor.properties` file, chances are OS X has unzipped the backup for you and sent the original zipped file to the trash. You need to retrieve the original zip file from the trash and then try the import again.
* **Did your import fail?** Sometimes importing a space may fail because the process times out or runs out of memory. This can lead to data being left behind in your database. See [After a failed space import, it's not possible to re-import because of leftover space data](https://confluence.atlassian.com/confkb/after-a-failed-space-import-it-s-not-possible-to-re-import-because-of-leftover-space-data-217743668.html) for more information.

<https://confluence.atlassian.com/doc/import-content-into-confluence-191141.html>

<https://confluence.atlassian.com/doc/restoring-a-site-152034.html>


author: Samuel Parker
body: - I'm using confluence cloud so don't have this folder (sorry should have mentioned earlier)

- Both are on Confluence 1000.0.0-ea093b5c47e0

- No the new space is empty

- I can't unzip the downloaded zip so I have no xml to upload, when I try to do it with a smaller zip it doesn't work, (i have tried to import the zip)

- I'm using windows 10, it gives this error "... JIRA Migration\\Confluence-export (3).zip: The archive is corrupt" Using 7zip gives this error "Unexpected end of data, Warnings: Header Errror"

- Importing the zip fails "

* There was an error during import. Please see our guide to raising a bug report."


Tags: cloud

export

xml