Hello everyone,
i've been having some trouble with PowerApps. My console started showing errors about an inability to read properties of undefined, like "MaxHeight" and "Height". Once these errors appeared, my dev environment repeatedly crashed on me altogether. Until it came to a point when it became impossible to do any further development.
Now "MaxHeight" was a lucky case since I immediately recognized it as a custom property from one of my components. I either removed those properties, set them to a fixed value or wrapped them in plenty IfError() and Coalesce() statements.
But now I have 1 error left over and do not know where to start looking. I have spent 2 hours browsing through the source code un my dev tools, using breakpoints and checking all the scope values. But there was not a single hint as to which ui element was the culprit for this error:
Uncaught TypeError: Cannot read properties of undefined (reading 'Tooltip')
The complete error reads as follows:
knockout.js?v=3.21103.27.202362840:17 Uncaught TypeError: Cannot read properties of undefined (reading 'Tooltip')
at o.getValue (AppMagic.Controls.js?v=3.21103.27.202362840:4)
at ControlWidget._getPropertyValueInternal (AppMagic.Controls.js?v=3.21103.27.202362840:4)
at ControlWidget.getPropertyValue (AppMagic.Controls.js?v=3.21103.27.202362840:4)
at e.@pa-client/appmagic-runtime-app.e.getPropertyValue (AppMagic.Runtime.App.js?v=3.21103.27.202362840:2)
at evalResult.9.Tooltip (eval at <anonymous> (AppMagic.Authoring.js?v=3.21103.27.202362840:24), <anonymous>:1:20798)
at AuthoringToolRuntime.@pa-client/appmagic-runtime-app.e._runPropertyRuleInternal (AppMagic.Runtime.App.js?v=3.21103.27.202362840:2)
at AuthoringToolRuntime.@pa-client/appmagic-runtime-app.e._runPropertyRule (AppMagic.Runtime.App.js?v=3.21103.27.202362840:2)
at AuthoringToolRuntime.@pa-client/appmagic-runtime-app.e.runDependentRules (AppMagic.Runtime.App.js?v=3.21103.27.202362840:2)
at fn (eval at AuthoringToolRuntime._evaluateFunction (AppMagic.Authoring.js?v=3.21103.27.202362840:24), <anonymous>:1:17)
at AppMagic.Runtime.App.js?v=3.21103.27.202362840:2
o.getValue @ AppMagic.Controls.js?v=3.21103.27.202362840:4
ControlWidget._getPropertyValueInternal @ AppMagic.Controls.js?v=3.21103.27.202362840:4
ControlWidget.getPropertyValue @ AppMagic.Controls.js?v=3.21103.27.202362840:4
@pa-client/appmagic-runtime-app.e.getPropertyValue @ AppMagic.Runtime.App.js?v=3.21103.27.202362840:2
evalResult.9.Tooltip @ VM561:1
@pa-client/appmagic-runtime-app.e._runPropertyRuleInternal @ AppMagic.Runtime.App.js?v=3.21103.27.202362840:2
@pa-client/appmagic-runtime-app.e._runPropertyRule @ AppMagic.Runtime.App.js?v=3.21103.27.202362840:2
@pa-client/appmagic-runtime-app.e.runDependentRules @ AppMagic.Runtime.App.js?v=3.21103.27.202362840:2
fn @ VM610:1
(anonymous) @ AppMagic.Runtime.App.js?v=3.21103.27.202362840:2
n.tryRunRuleOnInstance @ AppMagic.Controls.js?v=3.21103.27.202362840:4
t.runRuleFn @ AppMagic.Controls.js?v=3.21103.27.202362840:4
@pa-client/appmagic-runtime-app.e.onValueChanged @ AppMagic.Runtime.App.js?v=3.21103.27.202362840:2
ControlWidget._notifyOutputPropertyValueChangedInternal @ AppMagic.Controls.js?v=3.21103.27.202362840:4
ControlWidget.handlePropertyValueChanged @ AppMagic.Controls.js?v=3.21103.27.202362840:4
o.setModelValueInternal @ AppMagic.Controls.js?v=3.21103.27.202362840:4
n.setValue @ AppMagic.Controls.js?v=3.21103.27.202362840:4
(anonymous) @ AppMagic.Controls.js?v=3.21103.27.202362840:4
ControlWidget._runInAssociated0thContext @ AppMagic.Controls.js?v=3.21103.27.202362840:4
ControlWidget.handlePropertyValueChanged @ AppMagic.Controls.js?v=3.21103.27.202362840:4
o.setModelValueInternal @ AppMagic.Controls.js?v=3.21103.27.202362840:4
n.setValue @ AppMagic.Controls.js?v=3.21103.27.202362840:4
ControlWidget.setPropertyValueInternal @ AppMagic.Controls.js?v=3.21103.27.202362840:4
(anonymous) @ AppMagic.Controls.js?v=3.21103.27.202362840:4
ControlWidget._applyToControlContextIfApplicable @ AppMagic.Controls.js?v=3.21103.27.202362840:4
(anonymous) @ AppMagic.Controls.js?v=3.21103.27.202362840:4
r @ AppMagic.Controls.js?v=3.21103.27.202362840:4
o.forEachManagedDescendingBindingContext @ AppMagic.Controls.js?v=3.21103.27.202362840:4
ControlWidget._forEachBindingContext @ AppMagic.Controls.js?v=3.21103.27.202362840:4
ControlWidget.setPropertyLambdaInternal @ AppMagic.Controls.js?v=3.21103.27.202362840:4
evalResult.571.Tooltip @ VM561:1
@pa-client/appmagic-runtime-app.e._runPropertyRuleInternal @ AppMagic.Runtime.App.js?v=3.21103.27.202362840:2
@pa-client/appmagic-runtime-app.e._runPropertyRule @ AppMagic.Runtime.App.js?v=3.21103.27.202362840:2
@pa-client/appmagic-runtime-app.e.runDependentRules @ AppMagic.Runtime.App.js?v=3.21103.27.202362840:2
fn @ VM3033:1
@pa-client/appmagic-runtime-app.e.onValueChanged @ AppMagic.Runtime.App.js?v=3.21103.27.202362840:2
ControlWidget._notifyOutputPropertyValueChangedInternal @ AppMagic.Controls.js?v=3.21103.27.202362840:4
ControlWidget.handlePropertyValueChanged @ AppMagic.Controls.js?v=3.21103.27.202362840:4
o.setModelValueInternal @ AppMagic.Controls.js?v=3.21103.27.202362840:4
n.setValue @ AppMagic.Controls.js?v=3.21103.27.202362840:4
ControlWidget.setPropertyValueInternal @ AppMagic.Controls.js?v=3.21103.27.202362840:4
(anonymous) @ AppMagic.Controls.js?v=3.21103.27.202362840:4
ControlWidget._applyToControlContextIfApplicable @ AppMagic.Controls.js?v=3.21103.27.202362840:4
(anonymous) @ AppMagic.Controls.js?v=3.21103.27.202362840:4
r @ AppMagic.Controls.js?v=3.21103.27.202362840:4
o.forEachManagedDescendingBindingContext @ AppMagic.Controls.js?v=3.21103.27.202362840:4
ControlWidget._forEachBindingContext @ AppMagic.Controls.js?v=3.21103.27.202362840:4
ControlWidget.setPropertyLambdaInternal @ AppMagic.Controls.js?v=3.21103.27.202362840:4
evalResult.571.DisplayMode @ VM561:1
@pa-client/appmagic-runtime-app.e._runPropertyRuleInternal @ AppMagic.Runtime.App.js?v=3.21103.27.202362840:2
@pa-client/appmagic-runtime-app.e._runPropertyRule @ AppMagic.Runtime.App.js?v=3.21103.27.202362840:2
@pa-client/appmagic-runtime-app.e.runDependentRules @ AppMagic.Runtime.App.js?v=3.21103.27.202362840:2
fn @ VM3028:1
@pa-client/appmagic-runtime-app.e.onValueChanged @ AppMagic.Runtime.App.js?v=3.21103.27.202362840:2
ControlWidget._notifyOutputPropertyValueChangedInternal @ AppMagic.Controls.js?v=3.21103.27.202362840:4
ControlWidget.handlePropertyValueChanged @ AppMagic.Controls.js?v=3.21103.27.202362840:4
o.setModelValueInternal @ AppMagic.Controls.js?v=3.21103.27.202362840:4
n.setValue @ AppMagic.Controls.js?v=3.21103.27.202362840:4
ControlWidget.setPropertyValueInternal @ AppMagic.Controls.js?v=3.21103.27.202362840:4
(anonymous) @ AppMagic.Controls.js?v=3.21103.27.202362840:4
ControlWidget._applyToControlContextIfApplicable @ AppMagic.Controls.js?v=3.21103.27.202362840:4
(anonymous) @ AppMagic.Controls.js?v=3.21103.27.202362840:4
r @ AppMagic.Controls.js?v=3.21103.27.202362840:4
o.forEachManagedDescendingBindingContext @ AppMagic.Controls.js?v=3.21103.27.202362840:4
ControlWidget._forEachBindingContext @ AppMagic.Controls.js?v=3.21103.27.202362840:4
ControlWidget.setPropertyLambdaInternal @ AppMagic.Controls.js?v=3.21103.27.202362840:4
evalResult.570.DisplayMode @ VM561:1
@pa-client/appmagic-runtime-app.e._runPropertyRuleInternal @ AppMagic.Runtime.App.js?v=3.21103.27.202362840:2
@pa-client/appmagic-runtime-app.e._runPropertyRule @ AppMagic.Runtime.App.js?v=3.21103.27.202362840:2
@pa-client/appmagic-runtime-app.e.runDependentRules @ AppMagic.Runtime.App.js?v=3.21103.27.202362840:2
fn @ VM3022:1
@pa-client/appmagic-runtime-app.e.onValueChanged @ AppMagic.Runtime.App.js?v=3.21103.27.202362840:2
ControlWidget._notifyOutputPropertyValueChangedInternal @ AppMagic.Controls.js?v=3.21103.27.202362840:4
ControlWidget.handlePropertyValueChanged @ AppMagic.Controls.js?v=3.21103.27.202362840:4
o.setModelValueInternal @ AppMagic.Controls.js?v=3.21103.27.202362840:4
n.setValue @ AppMagic.Controls.js?v=3.21103.27.202362840:4
ControlWidget.setPropertyValueInternal @ AppMagic.Controls.js?v=3.21103.27.202362840:4
(anonymous) @ AppMagic.Controls.js?v=3.21103.27.202362840:4
ControlWidget._applyToControlContextIfApplicable @ AppMagic.Controls.js?v=3.21103.27.202362840:4
(anonymous) @ AppMagic.Controls.js?v=3.21103.27.202362840:4
r @ AppMagic.Controls.js?v=3.21103.27.202362840:4
o.forEachManagedDescendingBindingContext @ AppMagic.Controls.js?v=3.21103.27.202362840:4
ControlWidget._forEachBindingContext @ AppMagic.Controls.js?v=3.21103.27.202362840:4
ControlWidget.setPropertyLambdaInternal @ AppMagic.Controls.js?v=3.21103.27.202362840:4
evalResult.568.DisplayMode @ VM561:1
@pa-client/appmagic-runtime-app.e._runPropertyRuleInternal @ AppMagic.Runtime.App.js?v=3.21103.27.202362840:2
@pa-client/appmagic-runtime-app.e._runPropertyRule @ AppMagic.Runtime.App.js?v=3.21103.27.202362840:2
@pa-client/appmagic-runtime-app.e.runDependentRules @ AppMagic.Runtime.App.js?v=3.21103.27.202362840:2
fn @ VM1936:1
@pa-client/appmagic-runtime-app.e.onValueChanged @ AppMagic.Runtime.App.js?v=3.21103.27.202362840:2
ControlWidget._notifyOutputPropertyValueChangedInternal @ AppMagic.Controls.js?v=3.21103.27.202362840:4
ControlWidget.handlePropertyValueChanged @ AppMagic.Controls.js?v=3.21103.27.202362840:4
o.setModelValueInternal @ AppMagic.Controls.js?v=3.21103.27.202362840:4
n.setValue @ AppMagic.Controls.js?v=3.21103.27.202362840:4
n.modelPropertyComputedWrite @ AppMagic.Controls.js?v=3.21103.27.202362840:4
e @ knockout.js?v=3.21103.27.202362840:51
@pa-client/toggleswitch.t.offOnRailClick @ toggleSwitch.js?v=3.21103.27.202362840:2
(anonymous) @ knockout.js?v=3.21103.27.202362840:99
(anonymous) @ knockout.js?v=3.21103.27.202362840:17
Show 69 more frames
The error occurs when I click a ToggleButton. It appears as though some element's tooltip is dependent on this toggle's value, but the formula fails to resolve. That's the only explanation I got so far.
There is also a warning being thrown in the console a complete 141 times, just always with a different GUID. Maybe this could need some fixing by Microsoft too:
DevTools failed to load source map: Could not parse content for https://sourcemaps.powerapps.com/srcmaps/static/js/module/<SomeGUID>.chunk.js.map: Unexpected token < in JSON at position 4
Thank you very much for your help

Report
All responses (
Answers (