cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CYT_Dev
Frequent Visitor

Missing 365 Profile or Manager

Hi,

I have a sharepoint list with all employees, which we need to keep intact for those that have left the business.(User Profile V2)

We also have 3 senior Managers whose Manager is not in our 365 System (they are external) (Get Manager V2)

 

I have a flow that successfully loops through the employees, uses their email to get their manager and updates it.

 

It completes but returns a failure on the employee who has left, and the people without a manager. So I get failure messages.

I could just ignore them, as the other records are updating, but I would like to 'error trap' and get a green succesful flow. 

 

If employee doesn't exist then skip, if Manager doesn't exist then skip.

 

Can this be done?

 

My flow, and I did try using 'configure run after' on the update item but this doesn't stop it failing.

 

CYT_Dev_0-1601967460268.png

 

5 REPLIES 5
manuelstgomes
Super User II
Super User II

Hi @CYT_Dev 

 

Yes. I would recommend the following:

  1. After the "Get manager" press the +
  2. Add a parallel branch.
  3. Add a terminate action. Set it as "Succeeded."
  4. Press the "..." and "Configure run after."
  5. Select all error options.
  6. Press "Done".

 

This way, the Power Automate will update if there isn't an error and to the other parallel branch if there is an error. You'll see that the path will have a red color differentiating from the other. Here's the full process.

 

Screenshot 2020-10-06 at 11.28.09.png

 

You'll get:

Screenshot 2020-10-06 at 11.28.18.png

 

Can you please check if and let me know if you have any questions?

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

Hi, like the idea, but can't use a Terminate within an 'Each' function apparently

 

CYT_Dev_0-1601981101026.png

 

Hi @CYT_Dev,

 

Oh!!! YOU'RE RIGHT! MY BAD! I didn't notice that there was a loop there.

 

Use the same strategy with some other action that doesn't do much, and outside the loop, use the "Run After" strategy.

 

I think this will solve your problem, but if not, please let me know, and we'll solve it.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

not updated

Hi, still giving me issues, despite looking like it should work

I have parallel left is Update Item, set to 'Is Succesful' 

Right i added send a mail, which is useful after all, if it fails (all three)

CYT_Dev_1-1613400691402.png

 

The flow still fails, and therefore won't run periodically, and eventually greys out
The mails do send for the 2 items that it fails on. But it looks like it is is till trying to update

CYT_Dev_0-1613400652627.png

 

Have i missed something?

thanks

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Users online (73,929)