web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Uncaught TypeError: Ca...
Power Apps
Unanswered

Uncaught TypeError: Cannot read properties of undefined (reading 'Tooltip')

(0) ShareShare
ReportReport
Posted on by

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

Categories:
I have the same question (0)
  • nickmanny Profile Picture
    18 on at

    In JavaScript almost everything is an object, null and undefined are exceptions. This error occurs when a property is read or a function is called on an undefined variable. Undefined means that a variable has been declared but has not been assigned a value. In JavaScript, properties and functions can only belong to objects. Since undefined is not an object type, calling a function or a property on such a variable causes the TypeError: Cannot read property of undefined.

    If you are not sure a variable that will always have some value, the best practice is to check the value of variables for null or undefined before using them. To avoid getting these types of errors, you need to make sure that the variables you are trying to read do have the correct value. This can be done in various ways. You can do if checks before dealing with objects whose values are bound to change:

    if (myVar !== undefined) {
    ...
    }

    Or

    if (typeof(myVar) !== 'undefined') {
    ...
    }

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 421

#2
Valantis Profile Picture

Valantis 405

#3
timl Profile Picture

timl 337 Super User 2026 Season 1

Last 30 days Overall leaderboard