Forum Discussion

ttinsley's avatar
ttinsley
Resolver I
10 years ago
Solved

Error with Get Data from SharePoint Online document library - Expression.Error: The key didn't match

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!

 

 

Error 1 - parse ODataError 2 - key didn't match

 

 

  • 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.

4 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    Have you tried using the "SharePoint Folder" data connector and putting in the root of the site?

    • ttinsley's avatar
      ttinsley
      Resolver I

      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.

       

      • ttinsley's avatar
        ttinsley
        Resolver I

        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.