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 / Incompatible Types for...
Power Apps
Unanswered

Incompatible Types for Comparison. These types can't be compared: Record,Text

(0) ShareShare
ReportReport
Posted on by 321
If(
 VsrForm.Mode = FormMode.New,
 LookUp(Vendorlist, 'Vendor Name'.Value = CboVendorName.Selected.Value, 'Vendor Category'),
 Parent.Default
)

 

What could be the issue.. the on change property of the CboVendor name is below

CboVendorName.Selected.Value
Categories:
I have the same question (0)
  • QuentinDURIEZ Profile Picture
    577 Moderator on at

    Hi,


    I would need some details to help you :

    What Datasource type is "Vendorlist" ?

    The type of the column "Vendor Name" ?

    The Items of "CboVendorName" ?

    This error means that one of your member in your equal operation is a record

    So if "Vendor Name" is a lookup column type, you need to get the column that you want to compare (like name or something), but I would like some precision if you can

    Regards,

     

  • codeworks Profile Picture
    321 on at

    Vendor List: Sharepoint

    Column Vendor Name: Single Line of Text

    Items of CboVendorName: Distinct(Vendorlist,'Vendor Name')

  • QuentinDURIEZ Profile Picture
    577 Moderator on at

    Thanks ! 

    So you don't need "Value" after 'Vendor Name', since it's already a text field

     

    If(
     VsrForm.Mode = FormMode.New,
     LookUp(Vendorlist, 'Vendor Name' = CboVendorName.Selected.Value, 'Vendor Category'),
     Parent.Default
    )

     

    Let me know if this works

  • codeworks Profile Picture
    321 on at

    Not working

  • QuentinDURIEZ Profile Picture
    577 Moderator on at

    OK so maybe the error is somewhere else

    What control are you setting the value ? A combobox or a text field ?

  • codeworks Profile Picture
    321 on at
    Combobox
  • QuentinDURIEZ Profile Picture
    577 Moderator on at

    And what's the Items property of this combobox ?

    The result of your formula needs to be of the same type of your combobox items

  • codeworks Profile Picture
    321 on at

    Distinct(Vendorlist,'Vendor Name')

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard