Monday 28 July 2014

Invalid Characters Prefixed with the Files


    Have got the issue reported from the receiver (Customer), that I am sending some special characters like below along the XML document. But I could not find the cause for this special characters as there is no encryption or custom pipeline used.


   After some Hours of Googling, I found the solution – Preserve BOM from the stack overflow forum, which is fixed and working fine.

Issue and solution:

       There is a Pipeline (XML Transmit) Property which has properties called as “Preserve BOM” as shown below, if it is set is true, then the file will be prefixed with BOM – check the link for more information on using BOM.



For my issue, I have set the flag to false, and then it seems that the file sent does not contain any special characters (BOM) which solves the issue.

2 comments:

  1. This is an amazing blog, and it helps students.Thanks for haring
    Biztalk
    Online training Hyderabad

    ReplyDelete
  2. Hi Raja.

    Very nice post. Short and easy to understand.
    Here is another post I found that may be interesting and helpful for you and your readers.
    Thanks

    https://www.art2link.com/using-c-static-variables-xsl-maps-mapping-hl7-flat-file-example/

    ReplyDelete