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:
  • 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard