---
title: "Problems while generating the KML file"
url: "https://openforis.support/questions/1754/problems-while-generating-the-kml-file"
tags: ["collect", "collectearth"]
status: "answered"
score: 0
answer_count: 2
asked: "2018-04-19T17:41:30"
last_activity: "2018-04-20T12:41:59"
source: "Open Foris Support - Q&A Forum"
license: "Copyright Open Foris, 2026. Some rights reserved under creative commons license."
---

# Problems while generating the KML file

Asked by joana melo on 2018-04-19

Hi, I am having problems when uploading my .csv file. I am getting the following message: 
java.lang.NullPointerException

it seems to be something to do with my 1st row... 1 = [1, "Ycoordinate", "Xcoordinate"]</html>

Any thoughts? Thanks in advance


## Answer (score 0, by collectearth on 2018-04-20)

Link: https://openforis.support/questions/1754/problems-while-generating-the-kml-file/1755

Ciao Joana,

To clarify the question a bit:

- Where are you uploading the CSV to?

- Can you describe exactly what steps you are following?

- Could you send the few first lines of the CSV?

- Could you also post the last exception messages in your log ( Collect Earth menu Help->Open Application Log File )

Thanks!


## Answer (score 0, by joana melo on 2018-04-20)

Link: https://openforis.support/questions/1754/problems-while-generating-the-kml-file/1756

Hi,

thanks for trying to help. I have a CSV file that follows your template "simple_ipcc_survey" which I am trying to use in Collect Earth by using the project "simple_ipcc_survey" and my CSV (by selecting the path to my CSV in the sheet "Sample data").

 - First lines of the CSV:

id,YCoordinate,XCoordinate
1,12.3893434200,-14.8949462500
2,12.3897688800,-14.8996870100

 - last exception messages in my log:

org.openforis.collect.earth.sampler.processor.AbstractPolygonKmlGenerator.getTemplateData(AbstractPolygonKmlGenerator.java:125) ~[collect-earth-sampler-1.6.27.jar:?]

In the meantime I did some random things: 

 - reboot my computer (still having the same error after this); 
 - select a different project (no error there); 
 - select back the "simple_ipcc_survey" (still no error);
 - choose the path to my CSV (wohooo! It worked)

It seemed completely random, so I don't really know what was wrong, but the thing is it is working now. So thanks again, but I don't think you need to bother with this anymore :)
