Reply
msft-cap
Helper II
Helper II
Partially syndicated - Outbound

DateFormat Error in Power BI using Sharepoint connection

Hello

 

I am working on a PBI report pulling data from Sharepoint files. It was refreshing without any issues until last month. Then started failing with large dataset issue, timeouts. 

 

To optimize the report, I updated some functions in desktop. and whenever I try to refresh the report, one table is giving me below error even for older dates where refresh went successful in Service until last month.

 

msftcap_0-1743980210182.png

 

Appreciate any inputs on this issue. I

 

2 REPLIES 2
Shruti_D
Community Support
Community Support

Syndicated - Outbound

Hi @msft-cap ,
Just  wanted to check if you had the opportunity to review the information provided by @Ritaf1983 ?.
If her response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you

Ritaf1983
Super User
Super User

Syndicated - Outbound

Hi @msft-cap 

One of the columns defined as Date/Time likely contains values with inconsistent or invalid formatting, which causes Power BI to throw a [DataFormat.Error] when trying to parse them.

This usually happens when:

  • The column includes values with leading/trailing spaces (e.g., " 01/02/2024").

  • The date format in the source file differs from the expected format in Power BI (e.g., U.S. MM/DD/YYYY vs. U.K. DD/MM/YYYY).

  • Some values are not valid dates at all.

You have two options to resolve this:

  1. Fix the source file – If possible, open the SharePoint file and clean up the problematic column by removing extra spaces and making sure the date format is consistent.

  2. Handle it in Power BI – In Power Query:

    • Use Text.Trim() before converting the column to date.

    • Use Using Locale when converting to date to match the original date format (e.g., English (United States) or English (United Kingdom)).

 

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)