cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MihirY
Level 8

PowerApp variables are not storing values sometimes

I am initializing variable values on OnVisible function of the PowerApp screen. If I test that it is working fine but if client test the same thing it is failing to get the values for 2 out of 10 times. I really don't understand why it is failing. What could be the reason for this? Any slow internet also can cause this issue? Client is unhappy with this issue and it is affecting whole application. 

 

Are there any best ways to initialize the variables? I don't want to do the same thing in OnStart of the app. 

5 REPLIES 5
Dual Super User
Dual Super User

Re: PowerApp variables are not storing values sometimes

Hi @MihirY 

 

that should not be the case

OnVisible will fire eveytime the user visits/navigates to that screen

 

You could add a label to the screen (for testing purpose only) and add the variable values as its text property to check 

Make sure to publish your app

Also make sure that users are clearing their browser cache and then test

MihirY
Level 8

Re: PowerApp variables are not storing values sometimes

I am initializing variable value by getting some data from list with Lookup function. This is not executing sometimes properly. But this is not everytime happening issue. I cannot add label because right now PowerApp is in production.

 

Dual Super User
Dual Super User

Re: PowerApp variables are not storing values sometimes

Hi @MihirY 

 

do you have a dev env?

I am initializing variable value by getting some data from list with Lookup function

what does this lookup function look like?

MihirY
Level 8

Re: PowerApp variables are not storing values sometimes

varApp: LookUp(ListName, ID = Value(taskId), columnName)
Dual Super User
Dual Super User

Re: PowerApp variables are not storing values sometimes

@MihirY 

 

taskId where is this variable being called and data stored in it?

 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,954)