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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
JChris
Helper II
Helper II

Valid date with locale, but I get "DataFormat.Error: We couldn't parse [...]"

I imported a CSV file. In that file I have a column Date which has dates formatted as "DD/MM/YYYY", e.g., 20/05/2015. The import went well and the vast majority of the items were successfully imported, but some failed:

 

 

17/01/2016
30/03/2016
15/03/2016
27/03/2016

[...]

Why did they fail even though I'm using the type date with PT-BR Locale for the Date column in PBI Desktop?

 

The error I get:

 

DataFormat.Error: We couldn't parse the input provided as a Date value.
Details:
    27/03/2016

 

4 REPLIES 4
VP
MVP

Please check link below for solution.

 

https://community.powerbi.com/t5/Desktop/Date-format-error/m-p/132174#M56393

 

Hope this will solve error

That won't fix the issue. I already manually set the type and locale for this column, but the issue persists.

When I convert the values provided with Locale pt-BR, I get no errors.

 

My suspicion would be that your data may contain some invisible leading or trailing characters.

You may check if the text length is 10 in all cases.

 

Otherwise: maybe you can share some sample data exactly in the format that causes issues?

Specializing in Power Query Formula Language (M)

I'll check the data for inconsistent spaces, sadly I can't provide any sample. I'll keep you up-to-date if I find anything.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.