Announcements
Greetings again.
Found myself with another sticky issue.
In our Testing environment we ran several invoicing tests, however, if I move from one invoice to another in the electronic invoice journal I get the following error:
"There is an unclosed literal string. Line 1, position 961."
I researched extensively that error, and came to understand that it refers to a string literal which has not been closed in the XML document. Hence, I opened an invoice XML sample and began to manually observe both the contents and structure within the file to seek for any of the following:
So far I was not able to identify any missing double quotes, improperly concatenated strings, and/or unescaped double quotes in the XML document.
The error indicates where the possible, faulty literal string is located, but I need to know how to interpret it.
Or, providing other solutions to that problem.
Please, your help would be mostly appreciated.
Found a solution.
I identified the response that receives the XML document, and then look into its extended datatype.
The EDT corresponded to EInvoiceCFDIResponse_MX and looked into its properties.
Found that StringSize's original value for the EDT was 960, so I modified its StringSize property to Memo value in order to increase the response so that the error will not show up again.
The error message says that the problem was noticed at position 961, therefore look at what you have as the 961st character and at the preceding characters.
Also note that XML editors with syntax highlighting (such as Visual Studio) can show you syntax errors.
André Arnaud de Cal...
294,095
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator