---
title: "Error opening Collect Earth project file"
url: "https://openforis.support/questions/611/error-opening-collect-earth-project-file"
tags: ["collectearth"]
status: "accepted"
score: 0
answer_count: 2
asked: "2016-07-26T14:55:58"
last_activity: "2016-07-27T09:06:59"
source: "Open Foris Support - Q&A Forum"
license: "Copyright Open Foris, 2026. Some rights reserved under creative commons license."
---

# Error opening Collect Earth project file

Asked by ulpu on 2016-07-26

Dear support,

I get the following errors when I try to open a cep file I created in survey designer:

Error when importing the project file
Error generating the kml file C:\Users\uimank\AppData\Roaming\CollectEarth (Access is denied) 

I checked I should have rights to that folder.
The cep file opens fine in Collect Earth before unzipping. But if I unzip it and add my own grid, or even if I just unzip and then zip it back again without making any changes, it fails to work. Could you please help me spot the problem, is it with my java settings or something else? The error log is here: https://drive.google.com/file/d/0B-XHMaAj-aWDTDctNnAwcW5FTjQ/view?usp=sharing

Thank you,
Ulpu


## Accepted answer (score 0, by collectearth on 2016-07-26)

Link: https://openforis.support/questions/611/error-opening-collect-earth-project-file/612

Ciao Ulpu,

It seems that the compression application you use is doing something unexpected. Ther is this message in the log that suggest the file is corrupted:

    ERROR 2016-07-26 14:56:26,990 [main] org.openforis.collect.earth.app.desktop.EarthApp: Error when importing project file
    net.lingala.zip4j.exception.ZipException: file header not found for given file name, cannot extract file
    	at net.lingala.zip4j.core.ZipFile.extractFile(ZipFile.java:627)
    	at net.lingala.zip4j.core.ZipFile.extractFile(ZipFile.java:587)
    	at net.lingala.zip4j.core.ZipFile.extractFile(ZipFile.java:566)
    	at org.openforis.collect.earth.app.service.EarthProjectsService.getProjectFolderName(EarthProjectsService.java:267)
    	at org.openforis.collect.earth.app.service.EarthProjectsService.oldFormatFolderExists(EarthProjectsService.java:258)
    	at org.openforis.collect.earth.app.service.EarthProjectsService.unzipContentsOnProjectFolder(EarthProjectsService.java:246)
    	at org.openforis.collect.earth.app.service.EarthProjectsService.loadCompressedProjectFile(EarthProjectsService.java:237)
    	at org.openforis.collect.earth.app.desktop.EarthApp.loadProjectIfDoubleClicked(EarthApp.java:439)
    	at org.openforis.collect.earth.app.desktop.EarthApp.initializeServer(EarthApp.java:336)
    	at org.openforis.collect.earth.app.desktop.EarthApp.main(EarthApp.java:95)

I would suggest that you re the grid files directly to the survey. You can do this in the Survey Designer using the **Files** section of the main tab:

![alt text][1]

Click the green button and then add a file of type grid!

![alt text][2]


  [1]: http://www.openforis.org/support/upfiles/firefox_2016-07-26_17-00-30.png
  [2]: http://www.openforis.org/support/upfiles/firefox_2016-07-26_17-00-50.png


## Answer (score 0, by ulpu on 2016-07-27)

Link: https://openforis.support/questions/611/error-opening-collect-earth-project-file/613

Thanks! I added the grid in Survey Designer and now it works. I used the usual way of zipping in Windows (Send to zipped folder) which has worked before though, so I wonder why it corrupts the file now.
