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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
achates
Frequent Visitor

Power Query failed to parse the datetime

I am importing data from data lake gen2 with PQ and having error with some columns as below. Data in column should be in time zone format. I tried to convert it to text, datetime, datatimezone using locale, etc., but all have same error. How can I fix this issue?

Data is being imported as Common Data Model, source data is saved in CSV format.

BTW, before I can convert the type, it was in Error in last Navigation step already. This means I have to convert a column in Error status. Will this be a problem? However, there is no way to show the column in any type that has no Error.

date type error.png

1 ACCEPTED SOLUTION

Hi Vijay, According to my further testing, it sounds like a bug of Common Data Model.
When I import data with CDM, certain datatime column will be treated as Error in Navigation step. I don't even have any chance to do any transformation to fix it. If I import with file mode, the column will be firstly detected as Text, then I can convert it to timezone by using locale without any problem.

View solution in original post

6 REPLIES 6
mahoneypat
Microsoft Employee
Microsoft Employee

From the error message, your values are DateTime, not DateTimeZone. If needed, you can use Date.Time.AddZone to add the timezone after you convert it to DateTime.

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

Actually, you might be better off using DateTimeZone.FromText, and using the optional formatting record [Format="dd MM yyyy HH:mm:ss.ffffff zzz", Culture="de-DE"])

 

--Nate

Anonymous
Not applicable

Try transforming the columns instead of changing the column type:

 

= Table.TransformColumns(#"Navigation 6", {{"ActivatedDate", DateTimeZone.From}})

Hi watkinnc, I tried, but same error.

Vijay_A_Verma
Most Valuable Professional
Most Valuable Professional

Hope there is no non-printable character in that. You can try cleaning it up through Transform - Format - Clean.

If there is still an issue, I would recommend if you can upload a file containing few rows to Onedrive / other file hosts without confidential data and share the link here. This will help volunteers here to provide right solution. 

Hi Vijay, According to my further testing, it sounds like a bug of Common Data Model.
When I import data with CDM, certain datatime column will be treated as Error in Navigation step. I don't even have any chance to do any transformation to fix it. If I import with file mode, the column will be firstly detected as Text, then I can convert it to timezone by using locale without any problem.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.