# Form Validation

**URL:** <https://forum.getodk.org/t/form-validation/17388>\
**Category:** Support\
**Created:** [January 22, 2019, 11:03am UTC](https://forum.getodk.org/t/form-validation/17388 "2019-01-22T11:03:17Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![tebok](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/tebok/32/5276_2.png) [@tebok](https://forum.getodk.org/u/tebok)\
**Post date:** [January 22, 2019, 11:03am UTC](https://forum.getodk.org/t/form-validation/17388/1 "2019-01-22T11:03:17Z")

</div>

Good day all,

My form is showing the following message after validation,

> > Xform parsing completed! See above for any warnings.  
> > Xform is valid! See above for any warnings.

But its failing to load.

msg when loading to Aggregate

Error: Problem with JavaRosa Parsing Form: org.opendatakit.aggregate.exception.ODKIncompleteSubmissionData: Javarosa failed to construct a FormDef. Is this an XForm definition?

---

<div class="post-metadata">

**Author:** ![Grzesiek2010](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/grzesiek2010/32/2881_2.png) [@Grzesiek2010](https://forum.getodk.org/u/Grzesiek2010)\
**Post date:** [January 22, 2019, 11:12am UTC](https://forum.getodk.org/t/form-validation/17388/2 "2019-01-22T11:12:51Z")

</div>

It's difficult to tell you what's wrong without the form. Could you attach it?

---

<div class="post-metadata">

**Author:** ![tebok](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/tebok/32/5276_2.png) [@tebok](https://forum.getodk.org/u/tebok)\
**Post date:** [January 22, 2019, 1:41pm UTC](https://forum.getodk.org/t/form-validation/17388/4 "2019-01-22T13:41:39Z")

</div>

are you able to help, am just stuck with loading

---

<div class="post-metadata">

**Author:** ![dicksonsamwel](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/dicksonsamwel/32/2898_2.png) [@dicksonsamwel](https://forum.getodk.org/u/dicksonsamwel)\
**Post date:** [January 22, 2019, 2:37pm UTC](https://forum.getodk.org/t/form-validation/17388/5 "2019-01-22T14:37:21Z")

</div>

Hi Tebo,

Which validating tool are you using? I have tried using validating your form and it works.

 ![forum](https://getodk.b-cdn.net/uploads/default/original/2X/4/4e3df20d6d5a0e157f81db185a0a409b15f543e3.png)

Tool used: [https://github.com/opendatakit/validate/releases/tag/v1.10.3](https://github.com/opendatakit/validate/releases/tag/v1.10.3)

---

<div class="post-metadata">

**Author:** ![tebok](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/tebok/32/5276_2.png) [@tebok](https://forum.getodk.org/u/tebok)\
**Post date:** [January 22, 2019, 3:06pm UTC](https://forum.getodk.org/t/form-validation/17388/6 "2019-01-22T15:06:05Z")

</div>

Exactly the same version as shown above. It validates but does not load in aggregate

---

<div class="post-metadata">

**Author:** ![dicksonsamwel](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/dicksonsamwel/32/2898_2.png) [@dicksonsamwel](https://forum.getodk.org/u/dicksonsamwel)\
**Post date:** [January 22, 2019, 4:09pm UTC](https://forum.getodk.org/t/form-validation/17388/7 "2019-01-22T16:09:53Z")

</div>

Are you replace an existing form or you are uploading for the first time?

I have tried my side and it works.  
[HH.xml](https://getodk.b-cdn.net/uploads/default/original/2X/d/d7f47f176a27bb36a32c99d8218138a6d17f1bbb.xml) (205.0 KB)

---

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [January 22, 2019, 11:08pm UTC](https://forum.getodk.org/t/form-validation/17388/8 "2019-01-22T23:08:11Z")

</div>

@tebok What version of Aggregate are you using? Does it work on [https://sandbox.aggregate.opendatakit.org](https://sandbox.aggregate.opendatakit.org)?

---

<div class="post-metadata">

**Author:** ![tebok](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/tebok/32/5276_2.png) [@tebok](https://forum.getodk.org/u/tebok)\
**Post date:** [January 24, 2019, 8:06am UTC](https://forum.getodk.org/t/form-validation/17388/9 "2019-01-24T08:06:00Z")

</div>

The form uploaded after I logged off and logged in back to the server. I can't really say what was wrong.

This one now comes when I try to upload the Itemsets.csv how do i tackle it

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

---

<div class="post-metadata">

**Author:** ![dicksonsamwel](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/dicksonsamwel/32/2898_2.png) [@dicksonsamwel](https://forum.getodk.org/u/dicksonsamwel)\
**Post date:** [January 24, 2019, 8:55am UTC](https://forum.getodk.org/t/form-validation/17388/10 "2019-01-24T08:55:33Z")

</div>

Are you sure you are uploading the csv the right way? it should be added as media file.

You did not answer my previous questions.

 ![media](https://getodk.b-cdn.net/uploads/default/original/2X/2/238552701aa7b77c28e81e95bd40b30d6a39ebac.png)

---

<div class="post-metadata">

**Author:** ![tebok](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/tebok/32/5276_2.png) [@tebok](https://forum.getodk.org/u/tebok)\
**Post date:** [January 24, 2019, 8:58am UTC](https://forum.getodk.org/t/form-validation/17388/11 "2019-01-24T08:58:28Z")

</div>

Yes i was replacing an existing form .

I uploaded via Optional Media Files and it is sending me that error.  
The xml uploaded successfully

---

<div class="post-metadata">

**Author:** ![dicksonsamwel](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/dicksonsamwel/32/2898_2.png) [@dicksonsamwel](https://forum.getodk.org/u/dicksonsamwel)\
**Post date:** [January 24, 2019, 9:05am UTC](https://forum.getodk.org/t/form-validation/17388/12 "2019-01-24T09:05:19Z")

</div>

Why are you replacing? Have you tried uploading the form and the attachment in the link provided by Yaw? What are you getting? Can you provide a screenshot?

---

<div class="post-metadata">

**Author:** ![tebok](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/tebok/32/5276_2.png) [@tebok](https://forum.getodk.org/u/tebok)\
**Post date:** [January 24, 2019, 9:19am UTC](https://forum.getodk.org/t/form-validation/17388/13 "2019-01-24T09:19:00Z")

</div>

![image](https://getodk.b-cdn.net/uploads/default/original/2X/4/4e1eab86cdda846172c69d32cf892f6fb3f1fc68.png)  
This is the message I get in Yaw's server

---

<div class="post-metadata">

**Author:** ![dicksonsamwel](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/dicksonsamwel/32/2898_2.png) [@dicksonsamwel](https://forum.getodk.org/u/dicksonsamwel)\
**Post date:** [January 24, 2019, 9:24am UTC](https://forum.getodk.org/t/form-validation/17388/14 "2019-01-24T09:24:41Z")

</div>

Oky, there is something that you are not doing the right way, if possible, makeup a csv similar to what you have then share it here.

Also checkout this [Uploading csv support file, getting error "Document has no root element"](https://forum.getodk.org/t/uploading-csv-support-file-getting-error-document-has-no-root-element/3436)

---

<div class="post-metadata">

**Author:** ![tebok](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/tebok/32/5276_2.png) [@tebok](https://forum.getodk.org/u/tebok)\
**Post date:** [January 24, 2019, 10:05am UTC](https://forum.getodk.org/t/form-validation/17388/15 "2019-01-24T10:05:02Z")

</div>

[external\_file.xlsx](https://getodk.b-cdn.net/uploads/default/original/2X/5/5ede9a0a54a4f860c9a1a6c97fff079268a4a5f3.xlsx) (12.3 KB)  
this is just a snapshot of a thousand rows I have created.

I have been through that link many times...still can't figure out the error

---

<div class="post-metadata">

**Author:** ![dicksonsamwel](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/dicksonsamwel/32/2898_2.png) [@dicksonsamwel](https://forum.getodk.org/u/dicksonsamwel)\
**Post date:** [January 24, 2019, 10:45am UTC](https://forum.getodk.org/t/form-validation/17388/16 "2019-01-24T10:45:55Z")

</div>

Why is it does it have .xlsx extension? It should be a csv file

---

<div class="post-metadata">

**Author:** ![tebok](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/tebok/32/5276_2.png) [@tebok](https://forum.getodk.org/u/tebok)\
**Post date:** [January 24, 2019, 10:50am UTC](https://forum.getodk.org/t/form-validation/17388/17 "2019-01-24T10:50:43Z")

</div>

[itemsets (17).csv](https://getodk.b-cdn.net/uploads/default/original/2X/3/31d6478ab3906c2b18394c7d6a21083b85a0e251.csv) (3.0 KB)  
oh Ok this is it

---

<div class="post-metadata">

**Author:** ![dicksonsamwel](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/dicksonsamwel/32/2898_2.png) [@dicksonsamwel](https://forum.getodk.org/u/dicksonsamwel)\
**Post date:** [January 24, 2019, 10:55am UTC](https://forum.getodk.org/t/form-validation/17388/18 "2019-01-24T10:55:41Z")

</div>

Oky, i think you are not uploading the xml file, you are uploading xlsx instead.  
I got the error after uploading the .xlsx file you shared instead of the xml.

Can you try this file [HH.xml](https://getodk.b-cdn.net/uploads/default/original/2X/d/d7f47f176a27bb36a32c99d8218138a6d17f1bbb.xml) (205.0 KB)  
With the csv you shared in the link above.

---

<div class="post-metadata">

**Author:** ![tebok](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/tebok/32/5276_2.png) [@tebok](https://forum.getodk.org/u/tebok)\
**Post date:** [January 24, 2019, 11:26am UTC](https://forum.getodk.org/t/form-validation/17388/19 "2019-01-24T11:26:10Z")

</div>

Loaded Pls explain why my main csv is failing

---

<div class="post-metadata">

**Author:** ![dicksonsamwel](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/dicksonsamwel/32/2898_2.png) [@dicksonsamwel](https://forum.getodk.org/u/dicksonsamwel)\
**Post date:** [January 25, 2019, 6:36am UTC](https://forum.getodk.org/t/form-validation/17388/21 "2019-01-25T06:36:35Z")

</div>

Hi @tebok,

That I cant tell maybe if you are willing to share the complete form with its attachment.

---

<div class="post-metadata">

**Author:** ![dicksonsamwel](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/dicksonsamwel/32/2898_2.png) [@dicksonsamwel](https://forum.getodk.org/u/dicksonsamwel)\
**Post date:** [January 29, 2019, 3:37pm UTC](https://forum.getodk.org/t/form-validation/17388/23 "2019-01-29T15:37:28Z")

</div>

Hi Tebo,

Have you tried the attached files in the link provided? I have tested by uploading the shared files and it works, no errors produced.

Also, I asked you, WHY ARE YOU REPLACING THE FORM? DOES THE EXISTING FORM HAVE SUBMISSIONS? DATA?

[Next page](https://forum.getodk.org/t/form-validation/17388.md?page=2)
