web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

XML transform Document - extra characters created

(0) ShareShare
ReportReport
Posted on by

Hi all,
I have created an XSL transform for a new third party warehouse and the document that is created looks great in notepad, explorer, word pad etc.  But when the warehouse tries to receive this into their system they get an error.  If they use debug to look at the file it has additional characters in the first position of the file.  These unprintable characters are causing the error.  I have had a similar problem once when creating flat text files but there I had control of the file create and changed it from a textIO to an asciiIO which solved the problem.  Any ideas for the XML transform?

Thanks

Paulina

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    Hi,

    Most probably these symbols are "byte order mark". The easiest way to remove BOM is to "play" with the encoding in your XSLT:

    <xsl:output omit-xml-declaration="yes" indent="yes" encoding="iso-8859-1"/>
    ....
    <xsl:text disable-output-escaping="yes">&lt;?xml version="1.0" encoding="utf-8"?&gt;</xsl:text>
  • Community Member Profile Picture
    on at

    Thanks - this looks great - I have sent it to the warehouse for them to check.

    Paulina

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans