cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TeeroyLyon
Helper II
Helper II

Error handling for Set Variable in App.Onstart - Red Error message.

Hi All,

 

Hope to get some error handling guidance.  I am setting a variable to store the manager of the current user in my App.OnStart:

 

Set(firstmanagerUser, Office365Users.ManagerV2(User().Email).mail);

 

This generates the nasty "manager record not found" red error message if it can't find a manager record in AD for the current user.  How can I supress this error message?  I've tried variations of IsError, IfError, but can't seen to supress the message.

 

Note: I've tried turning on "Formula-level error management" in Settings,  and that supresses the error globally,  but that messes up a whole lot of other things in my form 😞 (like all my Value() conversion statements )

 

Thanks for any help!

 

Cheers,

Troy

1 ACCEPTED SOLUTION

Accepted Solutions
CNT
Super User
Super User

@TeeroyLyon Unfortunately, what you have noted is the present situation. Please raise a ticket with MS.

View solution in original post

2 REPLIES 2
CNT
Super User
Super User

@TeeroyLyon Unfortunately, what you have noted is the present situation. Please raise a ticket with MS.

Yes, but strange...if I add a few lines of code in the block...it seems to delay the error and it doesn't appear.  Really strange behaviour. 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,362)