0

I am having an issue with an Azure integration scenario where we are receiving a JSON message on Azure APIM from Azure datafactory and we are sending this using APIM in XML format to an external REST receiver a BOM is added. Question is how to remove this. Is there an APIM policy available for it?

Azure Datafactory Pick up a XML file and we transmit it using copy to Azure APIM

DataFactory Pipeline

enter image description here

enter image description here

JSON source

Result (captured with requestbin)

XML output

APIM policy used to transform to XML

<json-to-xml apply="always" consider-accept-header="false" parse-date="false" namespace-separator=":" />

3
  • 1
    mostly, it may be that the BOM is present already in the JSON that was received by APIM. check your source. Because, there is no property or way in API M transform policies that can control this byte order mark, see APIM transform policy docs Commented Jul 22, 2022 at 7:36
  • 1
    This might be because of encodig and/or headers. Do you have more information about the JSON endpoint or response? Also: goedemorgen 😁 Commented Jul 22, 2022 at 7:44
  • added some additional details. to be complete. we pickup a XML file from a sFTP server using DataFactory we forward this to our APIM on Azure and we forward this to the external party.
    – PeterS
    Commented Jul 22, 2022 at 9:43

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.