Error: Generic Exception: Error Improperly formatted XML

Thanks, I removed the emojis, and the form works good in the android app. And I think that it’s a option you can to fix.
Thanks again :relaxed::relaxed:

1 Like

Hello. thanks for your support and I have the same problem with data submission. It shows an error- Improperly formatted XML. It works for near 1000 submissions but doesn’t work for 12 submissions with the same device. I’ve checked with the online validator and found an error. Please give me advice.

Welcome to the community, @rme_team! Would you mind sharing with the community a screenshot of the error message you are getting? This should help the community understand your issue pictorially.

Thanks a lot for your prompt response and support. I’ve checked the answers which are failed to submit .Found out that in one question (free comment box , they entered emoji as answer. So, I’ve removed the emojis and can be submitted. Thanks again.

1 Like

Thank you for sharing your solution with the entire community @rme_team! This is very helpful and should benefit the entire community having similar issues. :heart:

Hi! We have the same error in the Kobo app and having read this thread I believe it is because emojis were used in a free text box. However, we cannot find a way to edit the forms now in order to remove the emojis. Are they lost or is there a way to retrieve them? Thanks a lot in advance!

Welcome to the community, @annika_richter! Do you mean you wish to upload the data from the KoBoCollect android app forcefully to the server?

@Kal_Lam Thank you for the quick reply! Ideally we would just like to edit the forms to remove the emojis and then resubmit them. But they do not appear in the menu “Edit Saved Form” and therefore we don’t know how to access them.

1 Like

Maybe it’s in the XLSForm (questions, options, calculations) which you will need to update at the form level.

But that would mean that we should be unable to make any submissions with this form, right? However, it worked perfectly fine with all other submissions, only the ones with emojis are causing trouble.

Yes. Maybe in this case you will need to upload the submissions manually by following the support article Manually Uploading Submissions.

1 Like

Hello Annika… Tell me if you got a solution to this issue am in the same sutuation… Please Admin help me

Welcome to the community, @Mightyz! So do you also have issues submitting the data to the server? If yes, please check if the project is still there on the server for the data you are planning to submit.

I used an emoji in my form so received the Error: Generic Exception: Error: Improperly formatted XML.
However, when I tried to export data from KoboCollect manually via the following instructions:

  1. Connect the device to your computer
  2. Open the device’s internal storage on your computer. … On iOS you will need Android File Transfer from Google to access the device’s files.
  3. On your device open the ‘odk’ folder.

However, there was no ‘odk’ folder on my Android phone.

In sum, I need to edit my form to remove the emoji, but I am unable to edit it. I get an error when I try to submit it from KoboCollect on my Android, and it won’t let me edit the form apparently because an attempt was made to submit it, even though that failed.

@krisknut, do you still have the submission in your Collect android app? If yes, you should be able to edit it through the Collect android app.

It is in Finalized Form and there is no option I can see to edit it. The only option it gives me for it is Send Finalized Form, but that gives the same error each time.

It is really disheartening to spend hours collecting data for a report out in the field, only to have all the information including photographs disappear from my phone after I hit Submit in the KoboCollect app and an error is found.

After searching, I found the raw data and photos on my Android phone under Android> data> org.koboc.collect.android> files> projects> instances and I was able to recreate my report and submit it.

1 Like

@krisknut, :clap: :heart: :partying_face:

If this happens in the future, you should also be able to submit the data manually to the server as outlined in the support article:

Hello dear, I have a similar problem but, the form is already in the “send finalized form” then I cannot edit it to remove the emojy. How can I do in this?

Welcome to the community, @essaipaysannat! Are you able to submit the submission to the server? Maybe you could edit the same through the server then?