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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard