web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Cannot read property '...
Power Apps
Answered

Cannot read property 'tableName' of undefined

(0) ShareShare
ReportReport
Posted on by 59

Hello.

 

I am trying to connect my SP library to the PowerAPPs. Every time I receive the next message:

 

PowerAPP.png

I do it through the next option:

112.png

Then connect the SP site and input SP library name.

 

I have tried to connect the SP list, Callendar and all was OK.

Could you help me to solve this problem?
Thanks in advance.

I have the same question (0)
  • Pstork1 Profile Picture
    69,490 Most Valuable Professional on at

    I think its because you are trying to connect to a document library and not a list.  i don't think PowerApps supports SharePoint document libraries yet.

  • FreeNit Profile Picture
    59 on at

    According to this education video, it's possible

    https://www.youtube.com/watch?v=P6xMLprDTjU&t=2271s

     

    But I can`t repeat it because of the problem mentioned above.

  • Pstork1 Profile Picture
    69,490 Most Valuable Professional on at

    That video uses a Flow that is launched by a PowerApp.  Flow is supported in Document Libraries, but PowerApps isn't yet. I've done things similar to that video using Flow, but I don't think the video ever tries to access the document library in the PowerApp, only in the Flow.

  • Verified answer
    Pstork1 Profile Picture
    69,490 Most Valuable Professional on at

    Let me clarify my original response.  If you create a PowerApp from Blank you can add a SharePoint connector and configure it to use a SharePoint document library as a back end. What you can't do is create an app starting with data and point it at a document library.  Document libraries are focused on the files , not on the metadata. You can only create new apps from data when using lists.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    ''but I don't think the video ever tries to access the document library in the PowerApp''

     

    In the first three minutes of the video, the user can be seen making a document library, naming it, and then connecting it with PowerApps as the first thing he does before starting the process.

     

    It was lazy of the OP to link to the wrong timestamp. It starts at 01:20: https://www.youtube.com/watch?v=P6xMLprDTjU

     

    I am encountering the same problem. I keep getting the original message 'Cannot read property 'tableName' of undefined'.

     

    The video clearly shows that this IS possible. I don't understand why this thread is marked solved.

     

    Any ideas?

  • Pstork1 Profile Picture
    69,490 Most Valuable Professional on at

    You are correct that you can create a blank PowerApp and connect it to a document library.  What you can't do is create a PowerApp from a datasource and point that to a document library.  By default document libraries are filtered out of the connector when connecting to a list.  That is the connector that the start from data template uses.  You can use document libraries in Powerapps. You can't create a PowerApp by using the Start from Data functionality with a library.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I am sorry, probably I am just completely out of it, but then how does the guy in the video do it? Is it a fake video? 

     

    When I follow the exact same process (and this goes for the original OP too).

     

    1. Create an app in [....]

     

    2. Sharepoint (phone layout)

     

    And then when we enter the site URL and then type in the list name, we get the ''Cannot read property 'tableName' of undefined'' error. But I am doing exactly the same as the guy in the video, who makes an app. I gave you the timestamp. 

     

    I guess my brain works in a different way as I am not by default a technical person, but I have successfully worked with Office 365 and Powerapps. My question is simply: why does this work for him, and not for me, and why does everyone on the internet answer this question by just talking about something else? That's not a knock because I definitely appreciate the help. But I just don't understand. 

     

    What am I supposed to do? 

  • Pstork1 Profile Picture
    69,490 Most Valuable Professional on at

    Not sure how he got that to work.  But I think its more truthful to say that "the video shows that it used to work". MS has changed the Start from Your Data wizard since the early days and I suspect that they've tightened up the logic so that no longer works.  Currently in PowerApps it has different actions for getting an item vs getting a document.  All I know is that it doesn't work that way anymore and its not supposed to.

     

    You can create a blank app and then add the document library as a datasource.  From there you can build almost anything you want.  You just can't get the wizard to do it for you anymore.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 428

#2
Haque Profile Picture

Haque 338

#3
timl Profile Picture

timl 333 Super User 2026 Season 1

Last 30 days Overall leaderboard