Hello Everyone,
I have an issue with the file coming from the bank. Bank is sending the XML file with improper declaration of the XML version.
I am receiving the XML declaration in the file as below without quotes -
<?xml version= 1.0 encoding= UTF-8 ?>
Due to this, i am getting below error in my Sender File Channel -
19.04.2016 10:08:33.893 | Error | Attempt to process file failed with com.sap.aii.adapter.xi.routing.RoutingException: Unable to parse XML message payload to extract operation for receiver determinationorg.xml.sax.SAXParseException: The value following "version" in the XML declaration must be a quoted string. |
19.04.2016 10:08:33.893 | Error | MP: exception caught with cause com.sap.aii.adapter.xi.routing.RoutingException: Unable to parse XML message payload to extract operation for receiver determinationorg.xml.sax.SAXParseException: The value following "version" in the XML declaration must be a quoted string. |
19.04.2016 10:08:33.893 | Error | Returning to application. Exception: com.sap.aii.adapter.xi.routing.RoutingException: Unable to parse XML message payload to extract operation for receiver determinationorg.xml.sax.SAXParseException: The value following "version" in the XML declaration must be a quoted string. |
Ideally it should be in the below mentioned way with quotes-
<?xml version="1.0" encoding="UTF-8"?>
I know, the input file we are getting from Bank is against the XML standard, but i do not see any help from the Bank in changing the format from their end. So i have to handle it in PI now.
Does anyone have an idea to resolve this? Java mapping is the only riot or there is any better method to handle these kind of files?
Regards,
Nitin