cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
johnjohn123
Super User
Super User

Incompatible type for comparison. These types can not be compared : Table , Text

I have a combo box  field, and i am trying to check if it has a selected value of certain text, as follow:-

 

inc.png

 

but i am getting this error:-

 

Incompatible type for comparison. These types can not be compared : Table , Text

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
BCLS776
Super User
Super User

DataCardValue56.SelectedItems.Value is a table and you're testing its equivalence to a string - that's a type mismatch.

Instead, try:

If("Other (Access required ports, protocols, etc...)" in DataCardValue56.SelectedItems.Value,
    DisplayMode.Edit,
    DisplayMode.Disabled
)

Bryan

_________________________________________________________________________________________
Help the community help more users by choosing to "Accept as Solution" if this post met your needs. If you liked the post and want to show some appreciation, please give it a Thumbs Up.

View solution in original post

1 REPLY 1
BCLS776
Super User
Super User

DataCardValue56.SelectedItems.Value is a table and you're testing its equivalence to a string - that's a type mismatch.

Instead, try:

If("Other (Access required ports, protocols, etc...)" in DataCardValue56.SelectedItems.Value,
    DisplayMode.Edit,
    DisplayMode.Disabled
)

Bryan

_________________________________________________________________________________________
Help the community help more users by choosing to "Accept as Solution" if this post met your needs. If you liked the post and want to show some appreciation, please give it a Thumbs Up.

Helpful resources

Announcements
Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

<
Users online (2,213)