cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jimmy7
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

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
LeeHarris
Solution Sage
Solution Sage

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

Jimmy7
Frequent Visitor

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?

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.

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

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

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

Jimmy7
Frequent Visitor

Thanks for all your @LeeHarris

 

Thats great!

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

 

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.

Thanks @v-yuazh-msftSmiley Happy 

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

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

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Users online (1,921)