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 / Components Fail to Imp...
Power Apps
Answered

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
    170 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
    170 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

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard