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

Community site session details

Session Id : Qg5YU2m5XUm55r1SkbdCVI
Power Apps - Building Power Apps
Unanswered

Internal Error in the the IfError function: TypeError: e.replace is not a function

Like (0) ShareShare
ReportReport
Posted on 22 Sep 2022 16:21:23 by 174

The formula

 

Set(_contact, LookUp(Contacts, Email = Lower(User().Email)));

 

throws the following error (if error handling is enabled),

image.png

while the following code (which does the same but in 2 steps) works without error and returns the record

 

Set(_user, User());
Set(_contact, LookUp(Contacts, Email = Lower(_user.Email)));

 

It looks like the Lower function has a hiccup.

This appears in all environments (US and EUROPE based) with all available Studio versions.

 
Session ID: 6000e8bc-ab83-44f5-b4cc-50b46ee32fb7

I have the same question (0)
  • TxH Profile Picture
    174 on 07 Oct 2022 at 10:07:30
    Re: Internal Error in the the IfError function: TypeError: e.replace is not a function

    Microsoft has confirmed it as a bug today.

    The id for the corresponding support case is #2209290050001406.

    The bug only came up by accident, as it is not necessary to use the Lower() function for User().Email, as the query is case insensitive.
    Nevertheless, the formula should return a correct value and not crash.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 629 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 397 Super User 2025 Season 2

#3
wolenberg_ Profile Picture

wolenberg_ 232 Moderator

Last 30 days Overall leaderboard
Loading complete