Notifications
Announcements
I have started setting up a component library and everything was working fine. Looks all ok in the component library and I am able to add components to the screens within the library. Once I try to import a component to another App I get the error "One or more component behaviour properties, event or action, have a mismatched return type". This is the same for every component in the library. I have checked the types being returned and they all look correct. Any advice on how to debug this?
@Dr0idy
I'm having the same issue. I have quite a few components and they are being used in multiple apps and working fine for months. I started a new app today and attempted importing them. They error out with the message you mentioned.
I believe @vffdd is having a similar issue with components that are already being used in existing apps. Same for me.
Solved: Disble component behaviour property return type ch... - Power Platform Community (microsoft.com)
@TickoBoston Are you aware of any MS response to this yet?
@Dr0idy No, I am not.
Same error as well with an additional bug I mentioned here:
Re: Components triggering when editing code - Power Platform Community (microsoft.com)
and here
Components executing events automatically when edi... - Power Platform Community (microsoft.com)
Looks like the PA team is playing with our work without consideration 😞
@Dr0idy @cipster
I started experiencing the same issue this week. The functionality of component properties seems to have unexpectedly changed. I was able to resolve it within one of my canvas apps. I think the issue in my case was that I had several components with event or action properties where I had left the default return data type as boolean while not actually returning a boolean value in the property's expression. This has always worked in the past but it seems to be throwing a warning now. Seems like PA is tightening this up.
If you're not intending to return data from your property, one way to fix this is to change the return data type to "None". See attached screenshot. The other way is to add something in your expression that actually returns the expected data type. BE AWARE: THIS MAY WIPE OUT ANY EXISITNG DEFAULT EXPRESSION for your component property and within all instances of that component property on your screens. So copy/backup your expressions before changing.
Thanks @syed-j , that worked. I really wish the PowerApps team would just announce all these changes in advance.
Thanks, that did fix it. Not sure if this has always been the case but the component I had to fix wasn't the one I was trying to import also. It was on another component in the same library.
Hi, this solves the issue but breaks all apps which use the previous version. When the new update is applied wipe out your previous code in the onselect property. Have anyone found a fix of that because otherwise I will have to go record every single code on every single button within each app and then again manually re-apply them with the new version of the comp. library ;/
@dindzhov
Someone mentioned in a separate post that if you turn on the "Disable component behavior property return type" retired feature in your app settings, it might work. Unfortunately, I can no longer find that post.
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 796 Most Valuable Professional
Michael E. Gernaey 327 Super User 2025 Season 2
Power Platform 1919 268