You might have encountered an error while referring a named formula in a control.

Let me show you an example of the error and how to fix it.

Reason and Fix:

  • I created a named formula ‘loggedInUserEmail‘ to capture the logged-in user’s email as below.
  • Lets add a Label control and map the ‘loggedInUserEmail’ formula to the ‘Text’ property.
  • But the app is giving an error that it doesn’t recognize ‘loggedInUserEmail‘.
  • So, what’s the issue? It’s simple; you need to end the named formula declaration with a semicolon (;) always. Add the semicolon to the end of ‘loggedInUserEmail‘ and give it a try.
  • Observe the screen below. Adding a semicolon (;) resolved the issue, and now the Label control displays the email.

Refer previous post on Named Formulas, if you are a beginner.

🙂

Advertisements
Advertisements

One response to “Power Fx Named Formulas | ‘Unrecognized formula’ error”

  1. [Beginner] Display an SVG icon in Canvas App | Rajeev Pentyala - Microsoft Power Platform Avatar

    […] defines vector-based graphics in XML format. So to store the XML content I am defining a Named Formula variable […]

Leave a reply to [Beginner] Display an SVG icon in Canvas App | Rajeev Pentyala – Microsoft Power Platform Cancel reply