Power Query
3 TopicsPower query refresh times out intermittently when pulling data from Sharepoint and Google Sheets
About 1 out of 5 times, Power Query in Excel will get hung up when pulling data from a .CSV or .TXT data file stored on our Sharepoint site.( I also have this problem at times when pulling data from Google Sheets into Excel via Power Query.) I have checked all the data source credentials in Excel and everything looks fine. In the lower right had corner of Excel, it will simply say "Connecting to datasource..." and then nothing happens. After 5 or 10 minutes or so, I can hit ESC to end the process. I am trying to run this process within an Excel Macro. The fact that it runs some of the time, but not all of the time leads me to believe that perhaps the issue is with Sharepoint itself. Hence, my posting to this forum. If I run the Power Query from the VBA Macro, it will throw a VBA error whenever it gets stuck when trying to pull data from the Sharepoint folder. Again, this only happens about 1 out of 5 times the Macro is run. Here is some of the M Code ( I replaced our company site name with XXXXXXX in the sample code below) for the Power Query that gets stuck, which is being run from a VBA Macro in Excel: Source = SharePoint.Files("https://xxxxxxx.sharepoint.com/sites/DataWarehouse", [ApiVersion = 15]), #"Filtered Rows1" = Table.SelectRows(Source, each ([Folder Path] = "https://XXXXXXX..com/sites/DataWarehouse/Shared Documents/ACT/Contacts/Sharepoint Reference/")), #"Events txt_https://xxxxxxx/ sharepoint com/sites/DataWarehouse/Shared Documents/ACT/Contacts/Sharepoint Reference/" = #"Filtered Rows1"{[Name="Charity Events.txt",#"Folder Path"="[URL]https://XXXXXXX.sharepoint.com/sites/DataWarehouse/Shared[/URL] Documents/ACT/Contacts/Sharepoint Reference/"]}[Content], #"Imported CSV" = Csv.Document(#"Events txt_https://xxxxxxx/ sharepoint com/sites/DataWarehouse/Shared Documents/ACT/Contacts/Sharepoint Reference/",[Delimiter=",", Columns=1002, Encoding=65001, QuoteStyle=QuoteStyle.None]), Any ideas why Power Query gets hung up Intermittently when pulling data from Sharepoint? Also, is there some code I could use in my VBA Macro that would tell it to skip the Power Query refresh step and move to the next step if it gets hung up? Thanks in advance for any help you can provide! Matt942Views0likes0CommentsSharePoint How to see visitor count and visitors SharePoint history
Hi All, I have a SharePoint Site and I want to see a report how many time a user accessing the site and which folder. Also want to see a daily trend of visitor count to the site. All this information I want to import via Excel Power, I used Power Query SharePoint list feature for this but I am not sure which table I have to refer for same information ? Can anybody please help me out or suggest from which tables I can get above mentioned information ?2.5KViews0likes1CommentHelp with Connect to a SharePoint List (Power Query)
Hi all, When trying to connecting to an online SharePoint list in excel it gives me the option to use Anonymous, Windows or Organizational account. I mistakenly chose Anonymous and got this error: Unable to Connect - We encountered an error while trying to connect. Details: "Access to the resource is forbidden." When I try to go back to connect using Organisational account, it skips that option and goes straight to the above error.Solved3.7KViews1like1Comment