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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Erf19
Frequent Visitor

DataFormat.Error - Date Created data from sharepoint imported with errors, doesn't work as type any

I have a dataset that I replace regularly and would like a timestamp on the report to show when this file was last created.

 

The source comes from a sharepoint folder and looks like this on import:

Erf19_0-1593262905491.png

 

For some files, it reads the 'Date Modified' and 'Date Created' columns correctly. Unfortunately it doesn't read it correctly for any of the files I need it to read from - when I change the type to text or to any (see below) it still doesn't work.

Erf19_1-1593263051292.png

If I click on the error it tells me this:

Erf19_2-1593263119919.png

 

So the data is there, but it still tries to read it as DateTime value and not as text/any value even after changing its type.

 

Can someone help please?

 

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @Erf19 

If "Type Detection" is checked by default, power bi will change the column type automatically when data is imported.

Please uncheck this selection, then close your file and reopen a new file.

Capture10.JPG

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @Erf19 

Is this problem sloved? 
If it is sloved, could you kindly accept it as a solution to close this case and help the other members find it more quickly?
If not, please feel free to let me know.
 
Best Regards
Maggie
v-juanli-msft
Community Support
Community Support

Hi @Erf19 

If "Type Detection" is checked by default, power bi will change the column type automatically when data is imported.

Please uncheck this selection, then close your file and reopen a new file.

Capture10.JPG

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

artemus
Microsoft Employee
Microsoft Employee

It sounds like the values are being parsed in the day/month/year format, which would mean that it fails when the month is out of range. To fix this, choose the bottom "Use locale" option when changing column type.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors