cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rbn_nue
Resolver II
Resolver II

How to handle Office365Users.Manager failed error in canvas app?

Hi Folks,

 

I'm trying to handle the error Office365Users.Manager() whenever a user has no manager. Power apps not seem to be catching this even after using ifError.

 

rbn_nue_0-1658740027049.png

 

 

I tried turning on formula level error management, but it enabled a bunch of other errors to show up in several other locations (which did not show up before). Some of them I'm not able to handle even after validating for empty or blank object.

 

Is there anyway to check if manager exist for user first, without error showing up?

 

Thank you. 

 

 

2 REPLIES 2
PG_WorXz10
Community Champion
Community Champion

Hi @rbn_nue ,

 

Did you already tried IfBlankorError() with formula level error management ?

 

 

If this post was helpful or you need more help please consider giving Thumbs Up and Tag me in your reply I'll be happy to help. If this post helped you solve your issue please click Accept as solution and provide Thumbs Up. This will help others find it more readily.

rbn_nue
Resolver II
Resolver II

Hi @PG_WorXz10 ,

 

Yes, I have already tried formula level error management and ifError. But after turning it on I could see around 30 new errors (with user friendly messages), some of them I was able to avoid by using validation for empty or blank variable/collection. But some are not going away whatever I do. I had to turn off formula level error management due to this. 

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.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

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 (2,838)