For configuring the dynamic email address, I have included the mail structure and the pyaload as 2 separate message and 2 interfaces. In config, I have one operation mapping pointing towards both these structures and I have 2 receiver agreements. But I get an error in the adapter saying
Message processing failed. Cause: com.sap.aii.af.sdk.xi.srt.BubbleException: Failed to call the endpoint [null "null"]; nested exception caused by: com.sap.aii.af.sdk.xi.util.XMLScanException: expecting start tag: Mail, but found Invoice at state 1.
What needs to be done?