Hi Anjana,
If you are getting this message I think the next step is to take the same payload and try to convert in the cockpit from EDI to XML using the same control key. Technically I would expect the same error in the cockpit.
Regards,
Ryan Crosby