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 / Expected Table value
Power Apps
Answered

Expected Table value

(1) ShareShare
ReportReport
Posted on by 53
I am trying to add some error handling in a form I am building but having some issues.
 
I have two combo boxes where one filters its available items based on the selection of the other.
Names:
 
  • combobox_worktag
  • combobox_purchase_order_number
An issue I am having is that if the main combo box is empty, the form spits out an error since the second combo box can't filter since there's no value.
 
My idea was to add a cleaner error warning than what is the default so that my end users don't freak out.
In the combobox_purchase_order_number combo box, I am trying to get this to work:
 
If(
    IsBlank(combobox_worktag.Selected),
    Notify("Please select a worktag.", NotificationType.Error),
    Filter(
        purchase_order_table,
        worktag = combobox_worktag.Selected.worktag
    )
)

// this alone works though:
    Filter(
        purchase_order_table,
        worktag = combobox_worktag.Selected.worktag
    )
The whole thing errors out: Expected Table value
The Notify() function shows this error: Behavior function in a non-behavior property. You can't use this property to change values elsewhere in the app.
 
Better yet, if the error could be suppressed and not shown, that would work as well.
Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,073 Most Valuable Professional on at
    You cannot have a Notify in the same piece of code as a Filter. One is a triggered event and the other is a data set. What you could do though is have the Items of the second Combo Box
    If(
       Len(combobox_worktag.Selected.worktag) > 0, 
       Filter(
          purchase_order_table,
          worktag = combobox_worktag.Selected.worktag
       )
    )
    and then the InputTextPlaceholder
    If(
       Len(combobox_worktag.Selected.worktag) = 0,
       "Please select a worktag"
    )
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard