Posting as an Answer due to character limits
@Madhura Bhangay Thanks for your response. I don't see the same behavior at my end when I use the HTTP trigger and then create an HTTP request from the logic app. Whatever data I am passing to my HTTP request the same is passed to my function app until and unless the data is passed to my HTTP trigger is invalid or incorrect.
Have you verified if the data (XML content) is correctly sent from your client? How you can confirm that the data is only changed at the logic app end? The issue can be in any of the systems and you need to validate exactly where the XML data is getting changed.
- At the APIM end if there is no logging of the input XML then leverage the Trace to dump the input XML from your client.
- Add more traces to validate if there is any policy that may be changing your client input request.
Once you have the log with the sample input XML you can easily validate if the client has sent incorrect data or not (This will eliminate client-side issue as your client is sending the right data)
In case if it is correct data then use the same data to create the request and enable the OCP-APIM-trace to validate if any policy is changing the input data before sending it to the logic app. (This will eliminate APIM issue as the traces will confirm if the data was forwarded correctly or not)
Please refer to my private comment so I can connect with you offline to assist you further.
