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 / evaluate formula issue...
Power Apps
Unanswered

evaluate formula issue -Incompatible type

(0) ShareShare
ReportReport
Posted on by 314

I am not sure I got this error every time I open edit the application.   The red line error showed Incompatible type. 

All I did now, I comment out the red lines and un-comments. Then, red line will go away.  Until next time I open the application, any idea?

 

usaman45_0-1683736307940.png

 

Categories:
  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @usaman45 ,

    This occurs because you are storing values into a variable with different data types. For example you could be defining a variable as a text data type in one area of the application, and then defining the variable as a number type somewhere else in your app.

     

    It can be quite cumbersome to identify which variable is causing the problem. Here some checks you can do:

     

    • If the error is occurring on a Form and a Gallery, check the data source of the Form and the Gallery are the same
    • Check you do not have a Global Variable and a Collection with the same name
    • Check the Variables section and see if any Variables are returning “error”. This view is essential because if you click into the record, you can view how and where the variable is being defined.

    Amik_0-1683738596965.png

     

    • To identify which variable definition is causing the error, you can do this by process of elimination - delete each instance where the variable is being defined and then see if the error still appears.
    • Careful with your formats when applying the Format function to a variable. For example, if you're going to wrap a variable around with a Format function, ensure this is also the case elsewhere in the app wherever this variable is also being defined.
    • Although you may think you fixed the problem because the error is not appearing anymore after you made a change, restart the app to check if the app still works. This is because the problem may arise again on a restart

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution

    If you like my response, please give it a Thumbs Up.

  • usaman45 Profile Picture
    314 on at

    Thanks for the suggestions but I am still not able to fix the issue.

    I check Variables and there is no error and just show No value. 

  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    well there is an error somewhere @usaman45 , otherwise that message would not be appearing.

  • usaman45 Profile Picture
    314 on at

    I guess, just can not find where is.

  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    As mentioned, a simple solution is delete one of the variables, save and then restart the app. Then check if the error occurs. Keep repeating this until you can pinpoint which variable is causing the error.

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
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard