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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / No records in my colle...
Power Apps
Unanswered

No records in my collection retrieved from an Excel sheet

(0) ShareShare
ReportReport
Posted on by 140

 

Hi Community,

 

I just started to work with PowerApps. Right now I have problems in using the ClearCollect function on a Excel sheet data source. The connection to the data source itself is working, I can see the records in my app. But now I am trying to fill a collection from that Excel sheet data source. That doesn’t work so far, the collection is empty.

 

This is what I use:

ClearCollect(colUsers;

             ShowColumns(Tabel1;"FullName";"Inlogname"

             )

)

 

What is going wrong?

Thanks in advance

Categories:
I have the same question (0)
  • kidvallejo Profile Picture
    100 on at
    Firstly you want to use a comma after the collection name... off the top of my head the rest looks fine
  • AGroegelich Profile Picture
    140 on at

    Thanks it was worth a try, but that didn't work. It must be a semicolon in the Dutch version of PowerApps. 

     

  • kidvallejo Profile Picture
    100 on at
    Try clearcollect(collection, excelsource) as a starting point and bring everything in to see if there is an issue with the data source.

    There is no difference in the syntax that I am aware of but it might require add columns rather show
  • AGroegelich Profile Picture
    140 on at

    Well there must be an issue with the data source because even now there are no records showed in the collections oversight. However I am sure the data source connection is working because the records of my excel sheet are visible.

  • kidvallejo Profile Picture
    100 on at
    Can you show me a screen shot of what you can see of the data source... we will get this working for you 😉
  • AGroegelich Profile Picture
    140 on at

    20-1-2020 21-58-49.png

  • AGroegelich Profile Picture
    140 on at

    This is what I get. So all the fields are there, just no records. And I am not aware that I set a filter ore somethng like that.
    BTW Many thanks you are trying to help me.

  • kidvallejo Profile Picture
    100 on at
    No problem, happy to help.

    Create a button and on select put the following sorry if I use the wrong names):

    Refresh(tabel1);clear(collection);collect(collection, tabel1)

    If this doesn't work, check the table range in excel and reconnect if needed
  • AGroegelich Profile Picture
    140 on at

    Cool, that is working. 😀
    So I tried to put the same code in OnVisible of the screen but that was to optimistic. However that the button works might give a clue what is going on.

  • Verified answer
    kidvallejo Profile Picture
    100 on at

    Cool, so onvisible put the following:

     

    Refresh(Tabel1);ClearCollect(colUsers,ShowColumns(Tabel1,"FullName","Inlogname"))

     

    Fingers crossed!

     

    **Edit, you are right there is a Dutch variance I was not aware of... if it doesn't like the above use the following:

     

    Refresh(Tabel1);;ClearCollect(colUsers;ShowColumns(Tabel1;"FullName";"Inlogname"))

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard