Forum Discussion
Errors in Power Query with format
- Anonymous1 year ago
Hi KnucklezZ,
Thanks for reaching out to the Microsoft fabric community forum.
It looks like the error you're seeing "DataFormat.Error: We couldn't parse the input provided as a DateTime value" is happening because some of the "Updated" values are formatted with a timezone offset like +0100, which Power Query doesn’t recognize as a valid datetimezone format. It expects the offset to include a colon, like +01:00.
That subtle difference causes Power Query to fail when trying to convert the value. You can fix this, by adding a step in Power Query to insert a colon into the timezone offset.
* First go to Power Query Editor and add a new column using the following formula:
= try if Text.Length([Updated]) = 28 then
Text.Insert([Updated], 26, ":")
else
[Updated]* Then, convert that new column to datetimezone type. This will normalize the format and allow Power Query to parse all rows correctly.
I would also take a moment to thank Cookistador, for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.
If I misunderstand your needs or you still have problems on it, please feel free to let us know.
Best Regards,
Hammad.
Community Support TeamIf this post helps then please mark it as a solution, so that other members find it more quickly.
Thank you.
Hi KnucklezZ,
Thanks for reaching out to the Microsoft fabric community forum.
It looks like the error you're seeing "DataFormat.Error: We couldn't parse the input provided as a DateTime value" is happening because some of the "Updated" values are formatted with a timezone offset like +0100, which Power Query doesn’t recognize as a valid datetimezone format. It expects the offset to include a colon, like +01:00.
That subtle difference causes Power Query to fail when trying to convert the value. You can fix this, by adding a step in Power Query to insert a colon into the timezone offset.
* First go to Power Query Editor and add a new column using the following formula:
= try if Text.Length([Updated]) = 28 then
Text.Insert([Updated], 26, ":")
else
[Updated]
* Then, convert that new column to datetimezone type. This will normalize the format and allow Power Query to parse all rows correctly.
I would also take a moment to thank Cookistador, for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.
If I misunderstand your needs or you still have problems on it, please feel free to let us know.
Best Regards,
Hammad.
Community Support Team
If this post helps then please mark it as a solution, so that other members find it more quickly.
Thank you.
Thank you! This has worked. 🙂