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 type. Com...
Power Apps
Unanswered

Incompatible type. Compilation issue?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have an app where i am using patch to create new records. I am updating different fields based on what properties the user has selected they want to update based on a set of categories.

Datatypes:
Categories : Collection of Text
Property1Categories: Collection of Text

The following is part of the OnSelect of my "Save" Button:

Set(UpdateVar,{Category: Categories, Date: Date.SelectedDate, Note:Note.Text});

If(
!IsEmpty(
Filter(
Categories.Value,
!Not(Value in Property1Categories.Value)
)
),
Set(UpdateVar,Patch(UpdateVar,{Property1: Property1Control.Text}))
);


Patch('MyList', UpdateVar)


(There are about 15 properties like this, of different formats, Text, Number, Date, Person, Choice)

This gives me an error ON STARTUP but if i make some alterations to the code and revert them, it compiles without errors and populates the list when i run it.

Error: 
Incompatible type. We can't evaluate your formula because the context variable types are incompatible with the types of values in other places in your app.




Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Ended up taking an alternative approach,

    If(
    IsEmpty(
    Filter(
    Categories.Value,
    !Not(Value in Property1Categories.Value)
    )
    ),
    Reset(Property1Control)
    );


    Patch('MyList', {Property1: Property1Control.Text, ....)


    Annoying issue though.

  • skelecopter Profile Picture
    113 on at

    I am having the same issue. Did you ever get any further insight into it?

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard