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


PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.


Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Top Community Contributors for September  2019

Top Community Contributors for September 2019 🎉🎉

Let's thank our top community contributors


Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020


Power Platform World Tour

Coming to a city near you


PowerApps Community User Group Member Badge

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


Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 525 members 5,808 guests
Please welcome our newest community members: