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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Nimai123
Post Patron
Post Patron

We couldn't parse the input provided as a DateTime value..

OLE DB or ODBC error: [DataFormat.Error] We couldn't parse the input provided as a DateTime value..

 

My data source is SAP BW 

 

My date column is in text and when i convert it to date it gives me the above error.

 

I tried splitting and then merging back the column but didn't seem to work out.

 

Thanks.

@BhaveshPatel 

 

 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

tex628
Community Champion
Community Champion

You should be able to convert text formatted date's to dateTime without any issue so there is something trong with the text. It might be that it's the wrong delimiters or that there are other blankspaces present in the date. If you provide an image of the dates I might be able to see if there are any issues directly. 

Otherwise what you can do if you really can't get it to work is splitting the text column up in year, month and date and use this custom column to create a date: (Make sure that all three columns are formatted to whole number)

#date([Year],[Month],[Date]) as date


Br,
J




Connect on LinkedIn

View solution in original post

7 REPLIES 7
amitchandak
Super User
Super User

@Nimai123 , refer is these can help

https://community.powerbi.com/t5/Service/We-couldn-t-parse-the-input-provided-as-a-Date-value/m-p/73...

https://community.powerbi.com/t5/Desktop/DataFormat-Error-We-couldn-t-parse-the-input-provided-as-a-...

 

Check the exact error on power query

handle error in power query
https://www.youtube.com/watch?v=OE6DPmKqN7s
https://www.youtube.com/watch?v=9-Lag0VOiTs

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hello @amitchandak 

 

Thanks for the informative links.

 

In my scenario, I cannot replace the error values as I need the rows as the sales data with date and I also tried changing the Locale which also didn't help!

 

Are there any other options I can try!

 

Thanks!

 

tex628
Community Champion
Community Champion

You should be able to convert text formatted date's to dateTime without any issue so there is something trong with the text. It might be that it's the wrong delimiters or that there are other blankspaces present in the date. If you provide an image of the dates I might be able to see if there are any issues directly. 

Otherwise what you can do if you really can't get it to work is splitting the text column up in year, month and date and use this custom column to create a date: (Make sure that all three columns are formatted to whole number)

#date([Year],[Month],[Date]) as date


Br,
J




Connect on LinkedIn

Hello @tex628 

 

I have applied the solution which you provided but in my scenario, I cannot create a custom Column as I need to implement Incremental Refresh on the Date column which should be the source Date column and not the Custom Column.

 

The Date Column looks like below

Screenshot (158).png

 

@amitchandak 

@parry2k 

tex628
Community Champion
Community Champion

Is the date you're showing there the 4th of june or the 6th of April?


Connect on LinkedIn

Hello @tex628 

 

IT is in dd.mm.yyyy format. 

 

Thanks

tex628
Community Champion
Community Champion

Then i believe thats the issue. A text value date in the format xx.xx.xxxx is read as mm.dd.yyyy for me, meaning that every date with a day above 12 will return an error. 

I'm going to be perfectly honest with you, I don't know if it's possible to change this by toggling the locale. Due to the SAP datasource I'm assuming the process of adding another column to the source is a little more than a 30min tweak?

/ J 


Connect on LinkedIn

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.