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 / New error message in P...
Power Apps
Answered

New error message in PowerApps

(0) ShareShare
ReportReport
Posted on by 36

I have had a PowerApp in operation for over a year and it works fine. But now I suddenly have an error message with a datacard that I don't understand. 

 

In a datacard, the app is supposed to check wether the email address entered (by people picker) corresponds to the email address of the current user. I have therefir used the following formula in the error message of the datacard:

Bildschirmfoto 2023-06-08 um 14.13.59.png

 

Now this formula is shown to me as incorrect. The reason: "Regular expressions must be constand values".

 

Can anyone help me?

 

Many thanks for the support!

Categories:
I have the same question (0)
  • Verified answer
    BCLS776 Profile Picture
    8,994 Moderator on at

    The IsMatch() function is meant to be used with a Regular Expression; it does not determine equivalence between two strings. Try this instead:

    Coalesce(
     Parent.Error;
     If(
     !IsBlank(DataCardValue5_1.Selected) &&
     Lower(Trim(DataCardValue5_1.Selected.Email)) = Lower(Trim(User().Email))
     ;
     // Warning message here
     )
    )

    Hope that helps,

    Bryan

  • Michael_Bernedu Profile Picture
    36 on at

    Hi BCLS776

    Thank's a lot! It worked perfectly! 

    Best
    Michael

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard