Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

ActionFailed Approval

(0) ShareShare
ReportReport
Posted on by 19

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

  • Jimmy7 Profile Picture
    19 on at
    Re: ActionFailed Approval

    Thanks @v-yuazh-msftSmiley Happy 

  • v-yuazh-msft Profile Picture
    on at
    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.

  • Jimmy7 Profile Picture
    19 on at
    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

     

  • Jimmy7 Profile Picture
    19 on at
    Re: ActionFailed Approval

    Thanks for all your @LeeHarris

     

    Thats great!

  • Verified answer
    v-yuazh-msft Profile Picture
    on at
    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.

  • LeeHarris Profile Picture
    1,026 on at
    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

  • Jimmy7 Profile Picture
    19 on at
    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

  • v-yuazh-msft Profile Picture
    on at
    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.

  • Jimmy7 Profile Picture
    19 on at
    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?

  • LeeHarris Profile Picture
    1,026 on at
    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,708 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,030 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow