Uploading csv support file, getting error "Document has no root element"

Hi,

We want to reference pre-existing data in a survey form. We have developed
a .csv for this purpose according to the example given here:
http://opendatakit.org/help/form-design/data-preloading/

But when we try to upload the form into ODK Aggregate ("the same way you
upload media support files in the Form Upload window"), we get this error.

Error: Problem with JavaRosa Parsing Form:
org.opendatakit.aggregate.exception.ODKIncompleteSubmissionData:
java.lang.RuntimeException: Document has no root element!

Does anybody know what this means and how to address it?

Thanks!

-Jason

BTW, I tried uploading the sample form given in the help section
"Sample-Preloading" and get the same error.

··· On Monday, July 21, 2014 8:03:50 AM UTC-4, jasons...@gmail.com wrote: > > Hi, > > We want to reference pre-existing data in a survey form. We have > developed a .csv for this purpose according to the example given here: > http://opendatakit.org/help/form-design/data-preloading/ > > But when we try to upload the form into ODK Aggregate ("the same way you > upload media support files in the Form Upload window"), we get this error. > > Error: Problem with JavaRosa Parsing Form: > org.opendatakit.aggregate.exception.ODKIncompleteSubmissionData: > java.lang.RuntimeException: Document has no root element! > > Does anybody know what this means and how to address it? > > Thanks! > > -Jason >

Jason,

Just guessing here, but make sure you have converted the XLS to XML
(use http://xlsform.opendatakit.org) before uploading.

Then the XML should be uploaded into the "Form definition" slot. The
CSV should be uploaded into the "Optional Media file(s)" slot.

Sounds like the form you are uploading is very broken in some way. If
you are uploading an XML document, post it to dpaste.com and send out
a link.

Yaw

··· -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Mon, Jul 21, 2014 at 2:03 PM, jasonsnyder19@gmail.com wrote:

Hi,

We want to reference pre-existing data in a survey form. We have developed a
.csv for this purpose according to the example given here:
http://opendatakit.org/help/form-design/data-preloading/

But when we try to upload the form into ODK Aggregate ("the same way you
upload media support files in the Form Upload window"), we get this error.

Error: Problem with JavaRosa Parsing Form:
org.opendatakit.aggregate.exception.ODKIncompleteSubmissionData:
java.lang.RuntimeException: Document has no root element!

Does anybody know what this means and how to address it?

Thanks!

-Jason

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thanks Yaw, but I don't think that is the problem. I am not trying to
upload the standard .xml survey form (converted from excel), but instead a
.csv file to reference pre-existing data for the auto-fill function. The
help page suggests that we upload this form the same way we upload other
media ("Optional Media File(s)") to the ODK aggregate site. But even when I
try uploading the sample reference form "Sample-Preloading.csv", I get the
error.

··· On Monday, July 21, 2014 11:44:44 AM UTC-4, Yaw Anokwa wrote: > > Jason, > > Just guessing here, but make sure you have converted the XLS to XML > (use http://xlsform.opendatakit.org) before uploading. > > Then the XML should be uploaded into the "Form definition" slot. The > CSV should be uploaded into the "Optional Media file(s)" slot. > > Sounds like the form you are uploading is very broken in some way. If > you are uploading an XML document, post it to dpaste.com and send out > a link. > > Yaw > -- > Need ODK services? http://nafundi.com provides form design, server > setup, professional support, and software development for ODK. > > On Mon, Jul 21, 2014 at 2:03 PM, <jasons...@gmail.com > wrote: > > Hi, > > > > We want to reference pre-existing data in a survey form. We have > developed a > > .csv for this purpose according to the example given here: > > http://opendatakit.org/help/form-design/data-preloading/ > > > > But when we try to upload the form into ODK Aggregate ("the same way you > > upload media support files in the Form Upload window"), we get this > error. > > > > Error: Problem with JavaRosa Parsing Form: > > org.opendatakit.aggregate.exception.ODKIncompleteSubmissionData: > > java.lang.RuntimeException: Document has no root element! > > > > > > Does anybody know what this means and how to address it? > > > > Thanks! > > > > -Jason > > > > -- > > -- > > Post: opend...@googlegroups.com > > Unsubscribe: opendatakit...@googlegroups.com > > Options: http://groups.google.com/group/opendatakit?hl=en > > > > --- > > You received this message because you are subscribed to the Google > Groups > > "ODK Community" group. > > To unsubscribe from this group and stop receiving emails from it, send > an > > email to opendatakit...@googlegroups.com . > > For more options, visit https://groups.google.com/d/optout. >

Jason,

The .csv file is not the form -- it is the pre-loaded data. So you need to
upload a form definition PLUS the .csv file. The form definition is where
the problem seems to be in this case. As Yaw said, you need to upload a
.xml file, not a .xls file.

Best,

Chris

··· On Mon, Jul 21, 2014 at 1:57 PM, wrote:

Thanks Yaw, but I don't think that is the problem. I am not trying to
upload the standard .xml survey form (converted from excel), but instead a
.csv file to reference pre-existing data for the auto-fill function. The
help page suggests that we upload this form the same way we upload other
media ("Optional Media File(s)") to the ODK aggregate site. But even when I
try uploading the sample reference form "Sample-Preloading.csv", I get the
error.

On Monday, July 21, 2014 11:44:44 AM UTC-4, Yaw Anokwa wrote:

Jason,

Just guessing here, but make sure you have converted the XLS to XML
(use http://xlsform.opendatakit.org) before uploading.

Then the XML should be uploaded into the "Form definition" slot. The
CSV should be uploaded into the "Optional Media file(s)" slot.

Sounds like the form you are uploading is very broken in some way. If
you are uploading an XML document, post it to dpaste.com and send out
a link.

Yaw

Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.

On Mon, Jul 21, 2014 at 2:03 PM, jasons...@gmail.com wrote:

Hi,

We want to reference pre-existing data in a survey form. We have
developed a
.csv for this purpose according to the example given here:
http://opendatakit.org/help/form-design/data-preloading/

But when we try to upload the form into ODK Aggregate ("the same way
you
upload media support files in the Form Upload window"), we get this
error.

Error: Problem with JavaRosa Parsing Form:
org.opendatakit.aggregate.exception.ODKIncompleteSubmissionData:
java.lang.RuntimeException: Document has no root element!

Does anybody know what this means and how to address it?

Thanks!

-Jason

--

Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google
Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send
an
email to opendatakit...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Perfect. This worked. Thanks so much for the help guys!

··· On Monday, July 21, 2014 2:04:03 PM UTC-4, Christopher Robert wrote: > > Jason, > > The .csv file is not the form -- it is the pre-loaded data. So you need to > upload a form definition PLUS the .csv file. The form definition is where > the problem seems to be in this case. As Yaw said, you need to upload a > .xml file, not a .xls file. > > Best, > > Chris > > > > On Mon, Jul 21, 2014 at 1:57 PM, <jasons...@gmail.com > wrote: > >> Thanks Yaw, but I don't think that is the problem. I am not trying to >> upload the standard .xml survey form (converted from excel), but instead a >> .csv file to reference pre-existing data for the auto-fill function. The >> help page suggests that we upload this form the same way we upload other >> media ("Optional Media File(s)") to the ODK aggregate site. But even when I >> try uploading the sample reference form "Sample-Preloading.csv", I get the >> error. >> >> >> On Monday, July 21, 2014 11:44:44 AM UTC-4, Yaw Anokwa wrote: >> >>> Jason, >>> >>> Just guessing here, but make sure you have converted the XLS to XML >>> (use http://xlsform.opendatakit.org) before uploading. >>> >>> Then the XML should be uploaded into the "Form definition" slot. The >>> CSV should be uploaded into the "Optional Media file(s)" slot. >>> >>> Sounds like the form you are uploading is very broken in some way. If >>> you are uploading an XML document, post it to dpaste.com and send out >>> a link. >>> >>> Yaw >>> -- >>> Need ODK services? http://nafundi.com provides form design, server >>> setup, professional support, and software development for ODK. >>> >>> On Mon, Jul 21, 2014 at 2:03 PM, wrote: >>> > Hi, >>> > >>> > We want to reference pre-existing data in a survey form. We have >>> developed a >>> > .csv for this purpose according to the example given here: >>> > http://opendatakit.org/help/form-design/data-preloading/ >>> > >>> > But when we try to upload the form into ODK Aggregate ("the same way >>> you >>> > upload media support files in the Form Upload window"), we get this >>> error. >>> > >>> > Error: Problem with JavaRosa Parsing Form: >>> > org.opendatakit.aggregate.exception.ODKIncompleteSubmissionData: >>> > java.lang.RuntimeException: Document has no root element! >>> > >>> > >>> > Does anybody know what this means and how to address it? >>> > >>> > Thanks! >>> > >>> > -Jason >>> > >>> > -- >>> > -- >>> > Post: opend...@googlegroups.com >>> > Unsubscribe: opendatakit...@googlegroups.com >>> > Options: http://groups.google.com/group/opendatakit?hl=en >>> > >>> > --- >>> > You received this message because you are subscribed to the Google >>> Groups >>> > "ODK Community" group. >>> > To unsubscribe from this group and stop receiving emails from it, send >>> an >>> > email to opendatakit...@googlegroups.com. >>> > For more options, visit https://groups.google.com/d/optout. >>> >> -- >> -- >> Post: opend...@googlegroups.com >> Unsubscribe: opendatakit...@googlegroups.com >> Options: http://groups.google.com/group/opendatakit?hl=en >> >> --- >> You received this message because you are subscribed to the Google Groups >> "ODK Community" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to opendatakit...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > >