Encoding and decoding of request in Logic APP

Madhura Bhangay 1 Reputation point
2022-03-30T06:25:19.4+00:00

Hello All,
We are using Logic APP to process our XML request. This request is being sent to logic APP via API management. API management is sending a XML file but when we receive it in Logic APP its encoded. And while sending the request from Logic APP to function app this request is being decoded implicitly by logic APP.

The issue is this implicit conversion of XML is adding unknown locale characters ('REPLACEMENT CHARACTER' (U+FFFD)) in the decoded XML.

Why logic APP is adding these unknown characters while decoding?
Can we disabled this implicit encoding and decoding in logic APP?

Thanks In advance.

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,986 Reputation points Moderator
    2022-03-31T12:32:20.433+00:00

    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.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.