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 Automate / Initialization Variabl...
Power Automate
Unanswered

Initialization Variable NOT going away, No Longer Used or Referrenced

(0) ShareShare
ReportReport
Posted on by 353

I have a flow triggered by PowerApps. I have a few Variable Initialization actions that were setup as "Ask PowerApps". There seems to be an old, outdated variable input created that is no longer used or referrenced that is not going away. PowerApps it is still forcing me to put in a value, but i am 99% positive it is no longer referrenced in the flow. Is there a way I can clean that up?

 

old-variable.png

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    on at

    Hi @schuess3 ,

     

    The issue could be reproduced by me.

     

    If I just remove dynamic content “Ask in PowerApps” for the Initialize variable action, PowerApps will still ask a value for it.

     

    I will help report it from my side.

     

    By the way, I found that removing the Initialize variable action then re-add it to the flow, PowerApps won’t ask for a value anymore.

    1.PNG

     

    Please take a try with it on your side.

     

    Best regards,

    Mabel

     

  • v-yamao-msft Profile Picture
    on at

    Hi @schuess3 ,

     

    The issue has been reported.

     

    I will back to you once I got any updates later.

     

    Best regards,

    Mabel

     

  • Verified answer
    v-yamao-msft Profile Picture
    on at

    Hi @schuess3 ,

     

    I have some updates for you.

     

    This is a known issue for the PowerApps button. Please try to restart the process in order to get this to work.

     

    A fix will be rolled out in the future but I don’t have an ETA currently.

     

    Please try with the workaround to see if it works.

     

    Best regards,

    Mabel

     

  • CU11011415-0 Profile Picture
    472 on at

    Work around is not working for me.

    Any word on an ETA for when this will be fixed would be appreciated.

  • CU11011415-0 Profile Picture
    472 on at

    OK, I just realized that if you add a Initialize Variable step, before anything else, you need to rename the title of the step using the elipsis button.

    Change the Step Title: Initialize Variable to YourVar name.

    Then copy YourVar into the Name field  

    In the Value field, select Ask in PowerApps and then your var name will be put into Value field as YourVar_Value

     

    Be careful, if you introduce a new Initialize var and forget the steps above then the default Initializevariable_Value will be part of your parameter set in PowerApps for that Flow. 

     

    It would be great if we could delete the default var from the Flow Editor.

  • Community Power Platform Member Profile Picture
    on at

    I'm having the same problem. Can't get rid of "Initializevariable_Value". Now my app button is looking for that and giving me an Invalid Number of Arguments error. I already recreated the entire Flow from scratch to solve this error earlier. Basically can't initialize any variables without breaking the thing. 

  • Naboo Profile Picture
    6 on at

    Hi All,

     

    it seems that this problem is still not solved and the above solution does not work for me in the current version of power automate?!?

     

    Add InitVar in PowerAutomate does automatically create a var "Initializevariable_Value" even if i rename the action immideately:
    PowerAutomate_AddInitVarAction.png

    If i add "Ask in PowerApps" in the Value field - flow add a second variable in the list (and does NOT remove the old one):
    Flow caches the old varFlow caches the old var

    PowerApps remember all the variables (also REMOVED vars):
    PowerAutomate_rememberAllVars.png

    ...i tried also to remove the "Init Var" Action in flow - save it - edit again - add action again - save - recreate connection in powerapps... nothing worked. 

     

    Any ideas to get this work?

    thanks in advance, Markus

  • janbakker Profile Picture
    3 on at

    I have the same issue. The only "fix" for this, is to re-create your flow, and carefully take thi steps:

    0. Think about the variables you need. Deleting or changing them afterward is a big pain (as we can all read above)

    1. Initialize new variable (don't pick the value just yet!)

    2. Rename the step into a logic name

    3. Now select Ask In PowerApps for the value.

  • Community Power Platform Member Profile Picture
    on at

    The issue remains two years later. I wonder when this will get fixed....In the meantime I will have to recreate my flow.

  • FORME_RH Profile Picture
    10 on at

    What worked for me was to remove the first step (Trigger) "PowerApps" and then add it again. After that you will have to set the "Value"-field in the variables again (choose: "Ask in PowerApps"). That whay you don't have to build the flow all over. It solved the issue for me.

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard