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 / "The 'Index' function ...
Power Apps
Unanswered

"The 'Index' function cannot be called with an empty table." --- but I'm not calling it! Help!

(0) ShareShare
ReportReport
Posted on by 49

So... I have a section in my app that allows the user to scroll through outstanding issues. Now, obviously sometimes there are no issues, in which case this section and all the contents where the issues would show up would be hidden. In my code, I do have a lot of index statements for navigating the issues, but these bits of code are inside If(issue_count>0, [stuff goes here]) statements...  which I figured would be perfectly Ok.... as i figured that if issue_count is zero, the Index part never gets evaluated and therefore should not be a problem... but clearly I'm missing something as this is giving me errors and I have about a 100 of these everywhere! How do I fix this?

 

For example this is giving me an error:

If(issue_count>0, If(Index(open_issues,issue_index).Issue_Type="Issue #1", [some HTML with the issue and it's description and all the issue deets goes here]) )
 
Categories:
I have the same question (0)

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 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard