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 / Email validation solut...
Power Apps
Unanswered

Email validation solution for Power Apps forum solution does not work

(0) ShareShare
ReportReport
Posted on by 53

Hi every one I am trying to add an email validation Data Card in PowerApps and I am using almost the same code that is in this solution. But for some reason it shows an error, 

 

"EmailCompro:text = There is an error in this formula. Please review it and run it again."

 

949184_soy_0-1713477991452.png

 

The code used is:

 

 

If(
 IsMatch(
 DataCardValue3.Text,
 "^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$"
 ),
 Check,
 Icon.Warning
)

 

 

And the error stars at the , symbol with this message:

 

Unexpected characters. The formula contains "Error" where "ParenClose" was expected.

Unexpected characters. Characters are used in the formula unexpectedly.

 

 

949184_soy_2-1713478585432.png

 

Any help will be appreciated

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @949184_soy ,

     

    I noticed you wrote the formula in the wrong attribute (Onselect).

    vxiaochenmsft_0-1713489595959.png

     

    Best Regards,

    Wearsky

  • 949184_soy Profile Picture
    53 on at

    Hi thank you for you help, but despite of adding the code to the Icon property I still got this error after the ,: 

     

    Unexpected characters. The formula contains "Error" where "ParenClose" was expected.

    Unexpected characters. Characters are used in the formula unexpectedly.

     

    and for some reason the code is not recognized, I mean the Regex expression should be red colored, the Check command should be blue. 

     

    949184_soy_0-1713531320096.png

     

    I am pretty I am missing something 

     

    Cheers

     

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @949184_soy ,

     

    Some regions use semicolons instead of commas in formulas.

     

    Best Regards,

    Wearsky

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 342 Most Valuable Professional

#2
11manish Profile Picture

11manish 234

#3
Valantis Profile Picture

Valantis 187

Last 30 days Overall leaderboard