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
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Kudoed Authors
Users online (2,392)