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 / I got this message "In...
Power Apps
Answered

I got this message "Incompatible types for comparison"

(0) ShareShare
ReportReport
Posted on by 40

I have created a list for keeping the temporary activity of this record and then if it approves, I will update it back to the main list. Because of the Temporary activity list, I create the field name "Temp_ID" to collect the unique ID.

 

After the user approves, I lookup it to patch in user_request_form

where Log_Activity>>>Record what happens

Temp_ID>>>fied name that collect the id from user_request_form

 

ForAll(
 RenameColumns(
 Filter(
 CollectApp,
 IsChoosen = true
 ),
 "Temp_ID",
 "Temp_ID"
 ),
 Patch(
 User_Request_Form,
 LookUp(
 User_Request_Form,
 ID = Temp_ID
 ),
 {
 Note: "TEST",
 Status: {
 '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
 Id: 1,
 Value: "Activated"
 }
 }
 )
);

 

 Everything is fine.

Every line is patch.

but

saranp780_0-1664529762415.png

saranp780_1-1664529871079.png

 

 

Categories:
I have the same question (0)
  • adgkred Profile Picture
    228 on at

    Hey @saranp780,

    I guess this error's coming from ID = Temp_ID, where one is a number and the other is a string. You can use the Text() function around the number to convert it into a string and make the comparison possible.

    I guess it'd be Text(ID) = Temp_ID or ID = Text(Temp_ID) 

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @saranp780 

    Or ID*1=Temp_ID*1

    PowerApps assumes anything using numeric operator is a number.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,070

#2
Valantis Profile Picture

Valantis 639

#3
11manish Profile Picture

11manish 608

Last 30 days Overall leaderboard