Cheat Sheets/Power Apps/IfError
Power Fx function

IfErrorPower Fx function reference

Catch and replace an error.

Syntax

powerfx
IfError( Value1 [, FallbackResult1 ] [, Value2, FallbackResult2, ... ] [, DefaultFallback ] )

Examples

powerfx
IfError(Value(txtQty.Text), 0)
Safe fallback
powerfx
IfError(1 / Value(txtDivisor.Text), 0)
powerfx
IfError(ParseJSON(txtPayload.Text), Blank())

Common mistakes & gotchas

Related Power Fx functions

From Conditional logic

Used in these tutorials

← Back to the Power Apps (Power Fx) cheat sheet