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 / Changed an icon visibi...
Power Apps
Answered

Changed an icon visibility, now getting incompatible type error

(0) ShareShare
ReportReport
Posted on by 43

OK, if someone can explain this I would be very grateful!

 

I've pretty much built my prototype library subscriptions app. Everything was working, I was super happy.

 

I came up with one more idea to increase functionality - have icons on my People gallery cards to indicate whether or not the person in question is a trainee.

 

Added a column to my datasource (just a yes / no response), added the card to my People detail form and People edit form. All fine, all working.

 

Went back to the gallery page and added the icon in the cards; my idea was to make it display only on people records where the trainee status is set to "Yes". I'd done something almost identical previously with a display icon to indicate whether or not someone was on leave / secondment, and that worked with zero problems.

 

The icon worked, BUT having now gone back to my People details form, I'm getting error messages and no data displaying. The message is:

 

Incompatible type. The "Trainee" column in the datasource  you're updating expects a "Text" type and you're using a "Control" type.

 

JTA88_1-1616001078519.png JTA88_2-1616001113971.png

 

I switched laptops the other day and didn't realise the Autosave feature had switched back on, so I can't undo what's happened (infuriating). My question is... what has happened?! Why would something that was working absolutely fine a second ago suddenly stop because I added an icon? The "on leave or secondment" icon and datacard caused no such issues, and I've literally repeated the exact same process - it's all practically identical:

 

JTA88_3-1616001370592.png

 

I've gone and undone all the visibility settings for my icons so they're all showing and filled green for the time being (the triangles are going to represent whether or not someone's a trainee):

 

JTA88_0-1616000921421.png

 

Little help? I'm about ready to hurl this machine out the window...

Categories:
  • timl Profile Picture
    37,287 Super User 2026 Season 2 on at

    Hi @JTA88 

    Can you inspect or paste the code that you have for the OnSelect property of your PeDelic icon?

    Most likely, the formula there refers to a control, when instead it should be referring to the value of the control.

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @JTA88 

    First...you can always revert back to other versions of your app.

    But, from the error message, it sounds like you have added something that is a control name and have not provided the property of that control you really need.

    Very commonly seen are things like this :  TextInput1  to get the text of the control when the Text property is needed to access it TextInput1.Text

    TexInput1 is a control...it has a control value.  If you want a property of it, you have to specify it.

    You did not provide the formula that you encountered this error, so I can only surmise based on the error you stated.

     

    I hope this is helpful for you.

  • JTA88 Profile Picture
    43 on at

    Thanks @RandyHayes ! Didn't realise I could revert to earlier versions, that's super helpful to know. Don't know what went wrong, but I've tried it again based on the old version and it's working this time 👍

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 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard