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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

XML files recurring import error

(0) ShareShare
ReportReport
Posted on by 210

Hello folks,

I'm dealing with an issue regarding a recurring integration with XML files. Basically the system blocks import of file before staging validation, showing the following log:

Unexpected XML declaration. The XML declaration must be the first node in the document, and no white space characters are allowed to appear before it. Line 17, position 15.

Apparently the problem is about the XML declaration and I'm experiencing the same error, no matter which files I try, in any sandbox environment. What is baffling though is that the very same recurring integration works fine in Live environment. All the data projects I'm using in the sandbox environments share the same data entity (custom), the same field mapping and the same middleware system for files enqueuing. We are even trying to import the same files uploaded in Live!

Since I cannot import XML files even in Prelive environment (meaning that, in this case, even the code base is identical to Live) my theory is that, maybe, some parameter or setup in Data management workspace or System administrator module gets canceled / lost during DB copying. However, so far, I couldn't detect any differences in setup between Prelive and Live. 

Have you ever experienced a similar problem? Would you share any insight? I will also definitely open a support request to MS.

Kind regards

Gian Paolo

I have the same question (0)
  • Suggested answer
    WillWU Profile Picture
    22,361 on at

    Hi partner,

    Please try to debug the code during you import the file, could you get any message?

  • Mohamed Amine Chebili Profile Picture
    15 on at

    Hi Gian Paolo,

    Did you resolve the problem, I had the same issue

    Thanks in advance

  • Martin Dráb Profile Picture
    237,884 Most Valuable Professional on at

    I would check what's at "Line 17, position 15" mentioned in the error message.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 565 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans