Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Components - input parameters based on variables not working any more (bug?)

(2) ShareShare
ReportReport
Posted on by 241

I have created some apps that rely on components to (for example) display stuff based on some input parameters. At some point in the last week (?) they stopped working properly (they were working fine before).

 

For example, I have a component that displays a text based on an input parameter "Text". On the form, the "Text" property of the component is set to "variable.name". But the label on the component that should display that value stays empty.

 

See attached example.

 

/edit: The example I attached only shows this with regard to displaying a text on a label in a component. But what makes this worse is that some of my components also have internal conditional logic to them based on boolean (or other) input variables. If that's not working, well that kind of breaks the whole app...

  • Safouene Profile Picture
    14 on at
    Re: Components - input parameters based on variables not working any more (bug?)

    Hello,

     

    Yes, it's working!

     

    Thanks for the quick and great support.

  • MrNappa Profile Picture
    241 on at
    Re: Components - input parameters based on variables not working any more (bug?)

    So far, it looks like it's working again. Thanks!

  • Verified answer
    Mr-Dang-MSFT Profile Picture
    on at
    Re: Components - input parameters based on variables not working any more (bug?)

    Hi @MrNappa @Safouene @Anonymous ,

    A fix was rolled out earlier today for the issue involving components and global variables. Can you let me know if it has resolved the issue for you?

  • Community Power Platform Member Profile Picture
    on at
    Re: Components - input parameters based on variables not working any more (bug?)

    Please refer to: https://powerusers.microsoft.com/t5/Building-Power-Apps/Power-App-Components-not-working-with-Global-variables-used-with/m-p/473414#M142132

     

    Known bug

  • Safouene Profile Picture
    14 on at
    Re: Components - input parameters based on variables not working any more (bug?)

    Finally,

    i've found a solution for this. Hope this helps if someone is facing the same problem

    • Origin: the problem is with Global variables; If a global variable is updated, the parameter becomes empty on the component
    • Solution: Instead of passing global variables, pass local variables
      • What i did, is on the 'Screen OnVisible' or the buttons 'OnSelect' as last Line, i've set UpdateContext( { locMyVariable: GlbMyVariable } )
      • In the component instead of passing GlbMyVariable, i pass locMyVariable
      • if you have a lot a variable parameters to pass to the component(s), you can all the updatecontext under a concurrent function
      • The parameters on the component should raise component reset

    Frankly, i hope MS will fix this, so we can pass Global variables as parameters to the components. In more, there is now the Component library, so if i'm going to publish some components to be used by the 'Citizen developers', i'm not sure if they will understand / like the fact that they should use local variables each time instead of using the same variable everywhere.

     

  • Safouene Profile Picture
    14 on at
    Re: Components - input parameters based on variables not working any more (bug?)

    Same problem here.

    If you pass a variable parameter to the component and the variable value changes. The parameter becomes empty!!

    Tested with a text, array, object parameters and always same buggy behavior.

     

    I have a lot of components in different apps, fortunately it keeps working on the already published versions, i don't even dare to update them.

     

    I've remarked also, if you pass this variable to a control on your app (let's say on the control text) and then pass to the component myControl.text, it keeps working. But we all know this is a very bad practice!

     

    Hope Fixes this ASAP.

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,587 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard