Showing results for 
Search instead for 
Did you mean: 
Not applicable

Global Variables Losing Value

This one is... a weird one?


I use a lot of global variables in my app. Every form's item is set to a global variable which is set on some other screen. These values are always set and never undefined when the user navigates to the forms/screens which use them, so I'm not sure why this error is happening and why it's only half happening.


Meaning, the live version of my app is fine. Its forms display the right information and everything is working. But on the edit version, where there are no differences whatsoever from the currently-published one, every form with a global variable as its item has the same error. "Invalid formula. Expected a value compatible with DataSource."


This has been happening to me on-and-off over the past few weeks and I don't think I ever actually do anything to fix it, it just sometimes fixes itself or I change a bunch of things enough that I have no idea what I did to make the error go away.


So the question is, is this just a PowerApps bug and I shouldn't touch it and let it fix itself, or is this a sign that I should rethink the way my app is working and handling these values, that there's the possibility of the whole app falling apart on its live version without warning?

Helpful resources

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.


Power Apps Community User Group Member Badge

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


Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020


Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.


Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (4,179)