web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Components Fail to Imp...
Power Apps
Unanswered

Components Fail to Import - "One or more component behaviour properties, event or action, have a mismatched return type"

(2) ShareShare
ReportReport
Posted on by 39

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?

Categories:
I have the same question (0)
  • SpoTechGeek Profile Picture
    63 on at

    @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.

  • TickoBoston Profile Picture
    on at

    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)

  • Dr0idy Profile Picture
    39 on at

    @TickoBoston Are you aware of any MS response to this yet?

  • TickoBoston Profile Picture
    on at

    @Dr0idy No, I am not.

  • cipster Profile Picture
    168 on at

    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 😞

     

  • Verified answer
    syed-j Profile Picture
    17 on at

    @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.

     

    syedj_0-1712211898093.png

     

  • cipster Profile Picture
    168 on at

    Thanks @syed-j , that worked. I really wish the PowerApps team would just announce all these changes in advance.

  • Dr0idy Profile Picture
    39 on at

    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.

  • dindzhov Profile Picture
    7 on at

    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 ;/ 

  • SpoTechGeek Profile Picture
    63 on at

    @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.

    DisableComponentBehavior.png

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard