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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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