Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Michieldo
Helper III
Helper III

Unexpected XML declaration OData feed

Hi all,

 

I'm currently struggling with the following error :

DataSource.Error: We couldn't parse OData response result. Error: 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 1, position 1398598

 

It looks like the problem is white space in certain columns, however I trimmed all text columns which didn't solve the problem. I also read a similar thread here with the proposed solution of clearing the cache. This didn't help either.

 

Has someone had a similar problem and found the solution? 🙂

 

Thanks in advance!

3 REPLIES 3
Anonymous
Not applicable

Hi @Michieldo ,


Could you tell me if your problem has been solved?
If it is, kindly Accept it as the solution. More people will benefit from it.
Or you are still confused about it, please provide me with more details about your problem.


Best Regards,
Stephen Tao

Anonymous
Not applicable

Hi @Michieldo ,

 

Sorry for my late reply.

 

I found this article which may help you:

 

https://en.it1352.com/article/059cf8b5efd744e68a1a23f65e5530a3.html

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Stephen,

 

I eventually changed it in the source data. Since the solution in the link you shared was not the most straight forward, I looked for other solutions. Therefore, I'm not sure if I can already accept your solution. Perhaps if someone else tries it and shares his or her result below we can.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors