Hello! thanks for your answer, yes, the message contains something along the lines of "Test message" or "Test" but also happens when attempting valid documents that work on our current instance.
Original Message:
Sent: Fri August 04, 2023 10:03 AM
From: Joseph Morgan
Subject: Parse Error and Illegal Character at offset 0
We fought these mysterious errors in the XML/DataPower world so much I eventually wrote an "isXML.js" to intercept any problems prior to processing XML. It writes the payload as an error in the logs or passes it on. Then I went so far as to give it a parameter to write the non-XML payload into XML so it would pass as XML, so at least the full text could be seen in a probe or something.
I think the error coming back from the server is going to be some plaintext starting with "The" or "There", like in, 'The request was not found", or "There was an error processing the request.".
------------------------------
Joseph Morgan
------------------------------
Original Message:
Sent: Fri August 04, 2023 02:56 AM
From: Hermanni Pernaa
Subject: Parse Error and Illegal Character at offset 0
As Joseph suggested, the culprit might be something else than the actual DataPower config. Did you try the XML file capture to see what the payload actually is? You can also try writing the received INPUT to a temp file using eg. GatewayScript action.
------------------------------
Hermanni Pernaa
Original Message:
Sent: Wed August 02, 2023 06:27 PM
From: Brian Alejandro Villarruel Velazquez
Subject: Parse Error and Illegal Character at offset 0
Hello! we are doing a migration and as part of this my team installed DP 10.5.0.2 in a virtual machine.
We are currently facing a problem for AS2 inbound messages, we get a Parse Error.

Checking the logs I can find a little more information where the error indicates Illegal Character 'T' at offset 0.

This character 'T' lines up with the first character on the messsage content. So it seems it is reading the content of the message and encountering an error with it.
It is strange because on the DP instance we are migrating from (in Kubernetes), the same message is succesfull, we exported and imported all configuration from this instance, and I have been comparing all the configurations I can think off on both DataPower instances but with no success.
(AS2 Handler, B2B Gateway, Partner Profiles, B2B routing file, etc...
Has anyone encountered this issue before or have an idea of what could be causing it?
Thanks!