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 / Table doesn't contain ...
Power Apps
Answered

Table doesn't contain any column of Text type error in Combo box

(2) ShareShare
ReportReport
Posted on by 299 Moderator
Hello, 
 
We are using a few Choice columns, and in one of the combo boxes, we want to exclude 2 options
 
Problem 1
 
The filter itself works, but it then throws this "Table doesn't contain any column of Text type error"
 
If I embrace the code with [ ] to make it a table, it then breaks my patch, which is the usual
 
Problem 2
 
specific_combobox.Selected.Value
 
The type of this argument 'abcd_specificchoices does not match the expected type 'OptionSetValue (Specific). Found type 'Table'
 
I can't find an answer to that, and if I leave the code as it is in Problem 1, I worry that it will affect the performance of the app (it doesn't so far)
 
I wonder if this is because the combo box is inside a component? 
 
Any help would be appreciated, thank you
 
Problem 1

//Items in 'Specific Needs' combo box - gives the 'Table doesn't contain any column of Text type'
Filter(
    Choices('Specific Needs'),
    Value <> 'Specific Needs'.'Special Care Needed' && Value <> 'Specific Needs'.'Other (Alternatives)'
)

Problem 2

//Items in 'Specific Needs' combo box as a table with [ ] - it fixes Problem 1, it creates new problem
[Filter(
    Choices('Specific Needs'),
    Value <> 'Specific Needs'.'Special Care Needed' && Value <> 'Specific Needs'.'Other (Alternatives)'
)]

New problem created

//Patch to dataverse my choice column is broken as it is now reading a table rather than a set choice, and it needs a set choice 

'Specific Needs Choices': dvc_SpecificNeeds_cmb.Selected.Value,
 
I also tried it with the below and the same error occurs
Filter(
    Choices('Case Recordeds'.'Specific Needs Choices'),
    Text(Value) <> "Special Care Needed" &&
    Text(Value) <> "Other (Alternatives)")
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,392 Super User 2025 Season 2 on at
     
    Please include pictures of all errors, including the code itself with the error identified so we can see the code as it is in the place it is.
     
    I am not sure what you mean for #1, you said it works but then immediately said it doesn't, so please explain and share a picture.
    You can certainly filter on a Choice but I want to see what you typed and no you should not have to add [ ]
     
    Did you place the Filter IN the Default or the DefaultSelectedItems <==it should be there, putting it in Default will cause the error you have
     
    However, are the combobox AND the Choice set to multi-select or single?
     
    if this solves your problem please Mark as such and maybe a like :-)
     
    Please come back with any questions and if so, please share the details I asked for.
     
     
  • CU09040716-0 Profile Picture
    4 on at
    Hi 
    Was this issue resolved? I am facing the same issue here.not able to fix.
     
  • CU09040716-0 Profile Picture
    4 on at
    if i use direct -choices() it works, but when trying to add some if() and filter() it gives error.

    code1-If(DataCardValue.Selected.Value = 'Do you agree?(employeetable)'.Yes,
         Choices('Approval Status (employeetable)'),
           ['Approval Status ((employeetable)'.Denied])
     
    code2-
    if(DataCardValue.Selected.Value = 'Do you agree?(employeetable)'.Yes,
         Choices('Approval Status (employeetable)'),
    Filter(
            Choices('Approval Status (employeetable)'), 
            Value = 'Approval Status (employeetable)'.Denied
        )
     
    both this code i tried it gives me same error-table doesnot contain any column of text type
     
    also defaultselecteditems property its [parent.default].
     
    can anyone suggest
     
  • Verified answer
    inanoffice23 Profile Picture
    299 Moderator on at
    Apologies I didn't get notifications that someone replied
     
    What I meant is the filter itself works, however Power Apps flags it as a Table doesn't contain any column of Text type error in my combo box itself, and I think if I don't fix the error, it would affect me somewhere down the line.
     
    A colleague managed to sort it with a collection :)
     
    OnStart app
    ClearCollect(colSpecificCategories, Choices('Table Name'.'Choice Name Choices'))
     
    Items

    Filter(colSpecificCategories,Text(Value)<>"Special Care Needed",
     Text(Value) <> "Other (Alternatives)")

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