Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Text of error - Expression.Error: The key didn't match any rows in the table.
Details:
Key=Record
Table=Table
Context
I am attempting to connect Power BI Desktop instance to SharePoint Online document library. The documents in this document library are rich with data. I want that data in Power BI for reporting.
I AM able to successfully import lists that are NOT document libraries.
Steps
In query editor, I click "New Sources"
I click "more ..."
I click SharePoint Online List
I type the URL
I select the document library
Error 1 below is thrown
I Change the API version to 14 (based upon solution in this community)
I refreesh the data and recieve Error 2 below
Thanks so much for your help!
Solved! Go to Solution.
Found the solution. Thanks to Christopher Woodill for posting
From his post ...
If you want to connect to your document libraries (for example if you wanted to report on the number of documents being uploaded) you can do this through the OData feed instead.
The URL for the OData feed is: https://yoursharepointsite/_vti_bin/listdata.svc to bring up all the lists and document libraries in Power BI Desktop or if you want to connect to a specific list the URL will be: https://yoursharepointsite/_vti_bin/listdata.svc/ListName.
Once you have created a connection to your list or document library, you can use the table of items as a data source and create dashboards and reports based on this data.
Have you tried using the "SharePoint Folder" data connector and putting in the root of the site?
Thank you for the response!
So, I was able to connect that way, but was showing ALL files. However, I figured out how to just pull the files from the document library I care about. So that's good.
The bad news is it is not pulling over the custom data fields we created for the document library where all the powerful information lives.
Same issue here. I can connect at the top level of the site or subsite and filter by library in the Query editor, but no MetaData loads. As far as OData, rights management doesn't seem to work for me through that path as it doesn't allow me to access the sharepoint site through the OData connector.
Found the solution. Thanks to Christopher Woodill for posting
From his post ...
If you want to connect to your document libraries (for example if you wanted to report on the number of documents being uploaded) you can do this through the OData feed instead.
The URL for the OData feed is: https://yoursharepointsite/_vti_bin/listdata.svc to bring up all the lists and document libraries in Power BI Desktop or if you want to connect to a specific list the URL will be: https://yoursharepointsite/_vti_bin/listdata.svc/ListName.
Once you have created a connection to your list or document library, you can use the table of items as a data source and create dashboards and reports based on this data.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
101 | |
49 | |
19 | |
12 | |
11 |