I have just managed to set up an ODK Aggregate server (v2.0.5) and have created some example forms using "ODK Build" (https://build.getodk.org/) and also using "ODK XLSForm Online" (https://getodk.org/xlsform/). In both cases, I was able to create a form (XML file) and successfully import it on the Aggregate server. I have also just set up "ODK Collect" on an Android device and when I click "Get Blank Form", I can see all of my forms that are available on the ODK Aggregate server. My problem is, that when I choose one of these forms (e.g. "form_test") to get, ODK Collect throws an error with the title "Download Results" and message "form_test (ID: form_test) - XML Syntax Error at Line: 1, Column: 3!". I get the same error on all of the forms.
The XML file contents for the form named "form_test" is as follows:
sorry about that, it looks like the line of XML code was truncated in my original post. I have edited the post to include it as a code block in markdown. Unfortunately, the form I created using xlsform was all on one line and looks quite ugly. Let me know if that still doesn't help and I will try again. I appreciate you looking at it!
Yes, that's correct, in both cases the error occurred with my own server. Thanks for the suggestion to try the demo server. I managed to successfully connect my ODK Collect to the demo server that you suggested and was able to download a blank form without an error. I guess this means that the problem is with the way my ODK Aggregate server is sending the form to the ODK Collect app? Do you have any suggestions of where I should look on my server (e.g. error logs) to try and work out where things might be going wrong?
I've never heard about a similar issue so that's strange. Could you maybe send me your credentials in private so that I can take a look? (I can't promise I will be able to solve the issue but I can't tell anything just looking at the error message).
BTW. Have you heard about ODK Central which replaced ODK Aggregate? Why didn you decide to use ODK Aggregate instead?
Thank you again, yes I will send you through the details in a private message shortly. If you are able to take a look at it that would be really fantastic!
I did read about ODK Central as well, but unfortunately was not able to find a set of instructions that allowed me to successfully set it up on AWS. I managed to get ODK Aggregate working and so decided to stick with that, but unfortunately then hit this snag with ODK Collect
Hi Grzegorz, it looks as though I have solved this issue. The problem was that I hadn't set up the ODK Aggregate server to have the right hostname. The solution was to put the correct hostname in /root/aggregate-config.json on the ODK Aggregate server and top then reinstall ODK Aggregate on the server using