Error: Generic Exception: Error Improperly Formatted XML. It happened twice

Hello community.
We were carrying out a large data collection project with 150 collectors and over 100 daily submissions.
Despite the high rate of successful submissions, lately there has been a serious error in the submissions.
image
image

I don’t think it’s an error in the form it only occurred on the cell phone of two data collector.
I had access to the xml in the instances folder and there is no emoji inserted. Below I make the file available for analysis.
Parte Diária de Veículo e Máquina_7_2022-09-03_06-35-50.xml (3.8 KB)

I tried to upload manually but got the following message:
"{“message”: “Submission complete. Out of 1 survey instances, 0 were imported, (1 were rejected as duplicates, missing forms, etc.)”, “errors”: “1 [‘Vehicle and Machine Daily Part_7_2022-09-03_06- 35-50.xml => reference to invalid character number: line 1, column 2169’]”}

@marcelsilva, could you also check if the survey project for this form exists on the server?

What I find strange is that in most cell phones it saves the xml in a folder with the naming pattern: Part of Vehicle and Machine Daily_Year_Month_Day_Hour
On the cell phone that failed, I found the following pattern:
Vehicle and Machine Daily Part_7_Year_Month_Day_Time.
We are already at version 17 of the form.
Below is the original file extracted from the cell phone where the transmission failed.
Parte Diária de Veículo e Máquina_7_2022-09-03_06-35-50.xml (3.8 KB)

I tried to change to the naming pattern above but the failure still persisted.

Is this a screenshot from View Sent Form?

image

No, this capture above it’s from “send finalized form”.

There is a hotel emoji :hotel: in the xml provided:
<Descricao_004>Hotel &#55356;&#57320; fim do expediente </Descricao_004>

@marcelsilva, this post discussed previously should help you solve your issue: