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

ActionFailed Approval

Hello,

 

I have a conditon which has continually fails on one user. I have tried resubmitting and setting the approval type to "anyone" and "everyone" with the same result.

 

My flow is in its infancy, so I'm unsure if this will continue to happen with other users.

 

UPDATE: Reject works fine

 

Thanks,

James

 

Capture1.PNGCapture2.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: ActionFailed Approval

Hi @Jimmy7,

 

Please add a Compose action before the Create item action, and refer to screenshot below to create the flow:

Capture.PNG The expression in the User Name Claims column as below:

concat('i:0#.f|membership|',outputs('Compose'))

The flow would run successfully as below:

Capture.PNG

 

 

Best regards,

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

10 REPLIES 10
Highlighted
Super User
Super User

Re: ActionFailed Approval

Hi @Jimmy7,

 

What is happening in the 3rd action within the Approval branch? The response is being handled and proceeding down the correct branch but it looks as though this later action is failing.


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


Follow me on Twitter at @QG_LeeJHarris

Or on LinkedIn at in/leejharris

Highlighted
Frequent Visitor

Re: ActionFailed Approval

Hi @LeeHarris,

 

Thanks for the speedy response!

 

So the second condition is to create an SP item based on get user profile V2. You where right I was getting...

 

"The specified user XXXXXXXX could not be found................."

 

All the info is legit, I can look up the user manually.

 

Oddly, I manualy added the SP item with the same user XXXXXX (found with no issue) and then proceded to delete the SP item. Re-ran the flow... and now it can find the user...

 

With the predicted volume of records being produced, this may be cause for concern as I will be unable to check all flows results. maybe an if failed?

Highlighted
Community Support
Community Support

Re: ActionFailed Approval

Hi @Jimmy7,

 

Could you please share a screenshot of the configuration of your flow?

 

From your screenshot I could see that the third action inside the if yes branch of the Condition is run failed, could you please share more details about the error message of the third action inside the if yes branch of the Condition?

 

Please share more details and screenshots so we would try to provide a proper workaround for you.

 

Best regards,

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Highlighted
Frequent Visitor

Re: ActionFailed Approval

Hi @v-yuazh-msft

 

I think it could be the fact that I am populating a Person or Group column with a Display Name from Get User Profile. In this instance the user has 2 accounts (one -test account) and it looks like Flow can't distiguish between them.

 

Anyway, I changed the Person or Group input to the MS Form Responders' E-mail  (seems more logical anyway) hopefully this will be enough.

 

Is there a way to add Has Failed on the entire flow? so if any of it fails I get an instant notification?

 

Thanks

 

Error message:

 
{
  "status": 400,
  "message": "The specified user XXXXXXXXX could not be found.\r\nclientRequestId: 041627e2-3c43-4f10-8c31-3f730b787753\r\nserviceRequestId: 6577ba9e-50e3-8000-a44a-7a783ba34e83"
}
 

 

Capture4.PNGCapture3.PNG

Highlighted
Super User
Super User

Re: ActionFailed Approval

Hi @Jimmy7

 

Within your Flow loop you may be able to add a parallel branch after the failing action. Then using the "Configure Run After" option in the ellipses menu you can have one branch handle a success and another branch handling a failure. Within the failure branch you could simply add the users email or id to a string array variable and then email this to yourself at the end of the process.

The below image is just to show the structure (obviously you don't want 3 Send email actions)

chrome_2019-01-29_09-21-15.png


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


Follow me on Twitter at @QG_LeeJHarris

Or on LinkedIn at in/leejharris

Highlighted
Community Support
Community Support

Re: ActionFailed Approval

Hi @Jimmy7,

 

Please add a Compose action before the Create item action, and refer to screenshot below to create the flow:

Capture.PNG The expression in the User Name Claims column as below:

concat('i:0#.f|membership|',outputs('Compose'))

The flow would run successfully as below:

Capture.PNG

 

 

Best regards,

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Frequent Visitor

Re: ActionFailed Approval

Thanks for all your @LeeHarris

 

Thats great!

Highlighted
Frequent Visitor

Re: ActionFailed Approval

Thanks @v-yuazh-msft

 

Is the expression using the first user e-mail "0#" ?

 

Would this be diffrent/better then to the image below?

 

Thanks again for all your help!

 

Capture5.PNG

 

Highlighted
Community Support
Community Support

Re: ActionFailed Approval

Hi @Jimmy7,

 

You could enter the email address directly in the "User Name Claims" column, the column require a type of below:

 

i:0#.f|membership|EmailAddress

 

Please take a try with my solution and let me know if your problem could be solved.

 

Best regards,

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Highlighted
Frequent Visitor

Re: ActionFailed Approval

Thanks @v-yuazh-msftSmiley Happy 

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Users online (7,690)