Forum Discussion
Dataflows: Import from Sharepoint folder
Thank you for the response.
Regarding your Sharepoint address, I am aware of this. I am able to use the connector "Sharepoint Online List" to import the list of objects that holds information in place on my Sharepoint Site, providing the URL to the site as you described.
However, I can't get the actual files stored on the Sharepoint site unless I use the "Sharepoint Folder" connector
This connector, "Sharepoint Folder", isn't even available in the "Get Data"-area when I try to create a new entity. So I'm stuck.
I've managed to find a workaround. Select Blank Query and then enter the below as the source. Click next and you can go from there. You would just enter the URL that you would normally do when you select SharePoint Folder in the desktop version.
Source = SharePoint.Files("https://[YOURSITE].sharepoint.com/sites/[YOUR SITE]/", [ApiVersion = 15])It looks like it's a bit cut down though so there's no button to automatically combine files together as you can in desktop.
EDIT: Managed to get the file combination working with a bit of tweaking - I found it easier to create the query and desktop then copy the whole lot over into a blank query.
- smagbuo7 years agoFrequent Visitor
I'm doing the same workaround but haven't been successful. I'm copying every query associated to the combine method including the fx (invoke function) since the main query (Query1 - which combines all the files in the specified SharePoint folder) is breaking due to missing referenced module. Could you share here the steps you did? Did you have to copy over all the Sample Queries within Transfor File from Query folder as well?
- Veles7 years agoAdvocate V
Yeah I copied over all the queries that were automatically created by the combine files step. I seem to remember having similar issues but managed to get it working eventually somehow. Unfortunately I can't remember exactly what I did as this was a while ago :(
What it might be worth trying is not copying over the function. instead copy over the sample query that it's being created from. Once created in dataflows you can right click on it can select create function.
Also make sure that all the names of the queries are exactly as they are in your original query you built in desktop, even down to the case as Power Query is case sensitive.
- Anonymous7 years agoNot applicable
Please consider editing to read " I found it easier to create the query in Power BI Desktop, then copy the code from advanced editor over into a blank query."
- Anonymous7 years agoNot applicable
Does anyone know if using this method of accessing sharepoint files and pulling them into a dataflow is subject to a size limit? It seems that when I use this metholdology to access smaller files, manipulate them in a query and then save them as a dataflow it works fine. But I have a few situations then the transformations require appending and merging data from separate tables. It seems to save OK, but when I go to refresh the dataflow I get an error similar to this - makes me think that larger more complex transformations using this metholdology fail for some reason - any thoughts?
Run time Dataflow name Dataflow refresh status Entity name Start time End time Entity refresh status Error 24/04/2019 11:20:55 Report Failed Report 24/04/2019 11:20:55 24/04/2019 11:21:26 Failed Error: We're sorry an error occurred during evaluation. Request ID: 0500d1d7-d106-7e47-0987-fa523e7924a7 Activity ID: 4486d774-3b83-4623-9f18-12d17b06e662