cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Buzz123 Frequent Visitor
Frequent Visitor

Date issues with Sharepoint file sources

The March update (2.56.5023.861 64-bit) got installed this morning.  Unfortunately, it's broken the ability for the Power BI Desktop Query to understand dates from a sharepoint folder source.  This file was working correctly last night (before the update).

 

The first step of the query is:

Source = SharePoint.Files("https://<ourplace>.sharepoint.com/sites/<oursite>/", [ApiVersion = 15]),

 

The 5th and 6th columns are date modified and date created respectively.  All fields in these columns are filled with Error.  The details are: 

DataFormat.Error: We couldn't parse the input provided as a DateTimeZone value.
Details:
21/06/2016 9:49 a.m.

 

Here in New Zealand, the date format is dd/mm/yyyy, and Regional Settings, Locale for import is set to English (New Zealand).  I've also checked the locale settings on the sharepoint site and it is the same.

 

I've tried changing the format of the column in the query editor, but it still reports the same error.  

 

I've tried going back to a previous version of desktop, but I got an error indicating I couldn't open the newer file with the older version.

 

I've replicated the error on another computer.

 

So, any ideas?

 

Michael

 

 

15 REPLIES 15
Moderator v-yuezhe-msft
Moderator

Re: Date issues with Sharepoint file sources

@Buzz123,

Right click your column in Query Editor of Power BI Desktop, select "Change Type->Using Locale", then change type to DateTimeZone. I can successfully convert the data type in March update(2.56.5023.861 64-bit) of Power BI Desktop.
2.JPG1.JPG3.JPG

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Buzz123 Frequent Visitor
Frequent Visitor

Re: Date issues with Sharepoint file sources

@v-yuezhe-msft 

Thanks for your instructions, but it's not working for me. 

 

Even before I "change type, using locale.." there is an error reported in the dates columns from the sharepoint.files line:

PowerBIerror.jpg

 

 

 

 

so I believe there's something broken when getting the data via the sharepoint.files command.  I can get other date columns to behave correctly, and I've managed to replace what I was after with a sharepoint.tables query.  The sharepoint.tables query takes a while to run, so I'd prefer to go back to the sharepoint.files command.

 

Anything else I could try?

 

Michael

 

 

ExcelNut Frequent Visitor
Frequent Visitor

Re: Date issues with Sharepoint file sources

same issue for me

ExcelNut Frequent Visitor
Frequent Visitor

Re: Date issues with Sharepoint file sources

I have the same problem.  Working before.  not working now.  shows an error when at the SOURCE step.   change local to Welsh, which matches the exact format of the data 15/02/2017 13:06 but the error persists.

Moderator v-yuezhe-msft
Moderator

Re: Date issues with Sharepoint file sources

@Buzz123,

I suspect that there are extra spaces in the date values after using sharepoint.files command to import data. Please remove these extra spaces following the guide in the similar thread below and change data type.

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

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
mahimabedi
Advisor

Re: Date issues with Sharepoint file sources

Same issue. Was working fine before, now its not. I tried the changing data tyapes and removing spaces. Nothing seems to be working. The error happens at the first step when the data is being read.

Buzz123 Frequent Visitor
Frequent Visitor

Re: Date issues with Sharepoint file sources

When I opened up Power BI desktop to have another look at this, I got notfied that a new version was available. Hoping that it would be sorted, I instaled the new version (2.56.5023.942), but the problem is still there.

 

As mentioned above, the error occurs in the first line of the query (source = ...). The Date Modified and Date Created fields are defaulting to a Date/Time type data type as expected. However the cells in both columns show an error. Selecting an individual cell shows this error:

DataFormat.Error: We couldn't parse the input provided as a DateTimeZone value.
Details:
6/03/2018 9:05 a.m.

 

Changing type to anything else (including text, and date/time/timezone with locale set to English (NZ)), still returns the same error. So, I can't get in to manipulate the date field.

 

(I've just tried to do the same thing in Excel, and the data loads correctly...

 

QueryInExcel.jpg

 

 

 

 

 

 

 

 

 

 

 

So, that would seem to indicate that there's a problem with the query engine in Power BI desktop.)

 

 

Any ideas?

 

Michael

Highlighted
Sascha1 Frequent Visitor
Frequent Visitor

Re: Date issues with Sharepoint file sources

Same issue here. I downgraded to the previous version and it works ok again.

eFeM135 Frequent Visitor
Frequent Visitor

Re: Date issues with Sharepoint file sources

Actually, I reported this issue on 13th of March with a silly proposal to change regional settings... they should know what the impact is on power queries... look here

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Top Kudoed Authors
Users Online
Currently online: 207 members 2,002 guests
Please welcome our newest community members: