Hi,
I have a big meeting tomorrow to present this onboarding app to HR and Execs and all of a sudden im getting the above error on all 3 of my galleries that are empty. As soon as i populate the galleries, the error goes away.
I havent changed anything in a couple of days and was 100% working on Monday.
Has anyone experienced this before??
Please help!
Thanks
Solved! Go to Solution.
@PowerGell54 Actually, I just found out what was wrong I believe. Hopefully this works for any of you as well. I found that I didn't have anything in the list and that was somehow causeing the error. I customized the form in PowerApps but there was nothing in the list when I started so that might have been the error. Long story short, I clicked on Quick Edit, added data to a few fields and created an item essentially without hitting the new button, and then I clicked the customized form button again. It opened the form in powerapps that I had been working on except this time NO ERROR!
Hope this was helpful. If this doesn't make anysense, please let me know!
Kind regards,
Ben Fetters
@BenFetters You're hit the nail on the head.
I can confirm that, if a given SharePoint list is empty, a PowerApps application will throw runtime errors if it happens to do any counting (Max, CountRows, etc.), searching, or filtering upon that list.
Thanks Ben!
This solution worked for me! 🙂
Hi @PowerGell54 ,
Have you solved your problem?
Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned.
Please make sure there are some records existed within the data source your Gallery connects to.
Also please consider take a try to turn off the "Improved app rendering (final validation)" option within Advanced settings of App settings of your app, then re-load your app, check if the issue is solved.
If the issue still exists, please consider remove the data source connection from your app, then re-add it again, check if the issue is fixed.
Best regards,
@v-xida-msft wrote:Please make sure there are some records existed within the data source your Gallery connects to.
Hi, quick question - what should we do in the case that a list may occasionally not have any data in it? I've got an app that is designed around a list that will often be empty.
Off the top of my head, I think you can ensure your list have a dummy item in it, then create views that would exclude this item for your users. For power apps, you would have to create a Collection whose source is the sharepoint list with a filter to exclude the dummy data.
ClearCollect(varMyCollection, Filter(sharePointList, Title <> "Dummy Title"))
I know it sounds like extra work, but it should work.
I don't know if this is related or not, but after a form has been successfully submitted, editing the content from within SharePoint lists is no longer possible. After selecting the item, clicking edit just opens the form. It use to bring up all the fields within SharePoint that could be edited and then just save (list format).
Anyone else having this issue?
User | Count |
---|---|
254 | |
106 | |
95 | |
50 | |
39 |