Hi Experts,
I have a File2RFC scenario where the Outbound Message fields are (for e.g,) ID,Name,Loc, and Status. The structure of the xml file which needs to be picked by sender file adapter is changing each time based on the data entered by the user. I am sure this will fail in IS with RuntimeException in Message-Mapping transformation Error. Is there anyway to handle this kind of situation.
Message Sample- 1 (Message Processed successfully as it contains all the 4 fields...)
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_Send xmlns:ns0="http://File2File">
<root>
<ID>1234</VesselID>
<Name>PIUSER</VesselName>
<Loc>System A</Type>
<Status>1</Status>
</root>
</ns0:MT_Send>
Message Sample- 2 (Message Failed with Runtime Mapping Exception in IS...'Loc' is missing)
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_Send xmlns:ns0="http://File2File">
<root>
<ID>5678</VesselID>
<Name>SAPUSER</VesselName>
<Status>2</Status>
</root>
</ns0:MT_Send>