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 / "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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#2
11manish Profile Picture

11manish 186

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 105 Super User 2026 Season 1

Last 30 days Overall leaderboard