Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

ComboBox - Expected table value error

Posted on by

I have 3 fields:

Dropdown1.Items = "A", "B", "C"

 

These 2 fields are in the same card

TextInput1

Default = If(Dropdown1.Selected.Value="A",Parent.Default,ComboBox1.Selected.Result)

ComboBox1

DefaultSelectedItems property: If(Dropdown1.selected.value = "B",Parent.Default,Blank())

 

However, in the combobox1 im getting the following error message: "Expected Table value" since the parent.default value does not exist in the Combobox1 items (source). How do i fix this issue? 

Ps. This worked fine when i had a dropdown instead of a combobox, but due to the number of items i had to switch so the user could use the search function.

 

 

Categories:
  • Sidhant_02 Profile Picture
    Sidhant_02 968 on at
    ComboBox - Expected table value error
    Thanks your answer resolved my issue.
  • Ari00017 Profile Picture
    Ari00017 20 on at
    Re: ComboBox - Expected table value error

    The error is gone but it still isn't showing it in defaultselecteditems:-

     

  • katriel_ramos Profile Picture
    katriel_ramos 2 on at
    Re: ComboBox - Expected table value error

    You help me a lot!!!

    Table({Value:Parent.Default}) 

    Solved my problem, thank you! 

  • Verified answer
    timl Profile Picture
    timl 31,980 on at
    Re: ComboBox - Expected table value error

    Hi @Anonymous 

    I think the problem is more likely because the DefaultSelectedItems property expects a table value. This is because with a ComboBox, multiple items can be selected.

    Therefore, for the DefaultSelectedItems property, I'd try something like this to see if it fixes the issue:

     

    If(Dropdown1.selected.value = "B",
    Table({Value:Parent.Default}),
    Blank()
    )

     

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,487

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,014

Leaderboard