cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
schuess3
Kudo Kingpin
Kudo Kingpin

Initialization Variable NOT going away, No Longer Used or Referrenced

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

1 ACCEPTED SOLUTION

Accepted Solutions

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

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

9 REPLIES 9
v-yamao-msft
Community Support
Community Support

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

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-yamao-msft
Community Support
Community Support

Hi @schuess3 ,

 

The issue has been reported.

 

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

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Work around is not working for me.

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

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.

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
Frequent Visitor

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
New Member

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.

calvares
Continued Contributor
Continued Contributor

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

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,123)