Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Handeling NotFound records with condition

(0) ShareShare
ReportReport
Posted on by 8

Hi All, 

@abm 

@404notfound 

I've the following flow. I'm trying to get related information from "Get Constituent Latest Gifts" in order to append it to "List constituents", some "List constituents" have information in "Get Constituent Latest Gifts" others no.

 

The problem is when information is not found in "Get Constituent Latest Gifts" I get the error:

 

Alejotecelec_1-1701454758577.png

I tried to handle this with a Condition but is not working, of course all dependent actions don't run: 

Condition parameters :

Alejotecelec_2-1701454840586.png

 Full flow:

Alejotecelec_0-1701454549353.png

Any help will be really appreciated.

  • ScottShearer Profile Picture
    25,212 Most Valuable Professional on at
    Re: Handeling NotFound records with condition

    @Alejotecelec 

    Rather than checking for null in your condition.  Use the length() expression to check for the number of elements returned from the Get Latest Gift action.  If it equal to zero, do one thing, else, do something else.

     

     

     

  • Matthy79 Profile Picture
    4,178 Super User 2024 Season 1 on at
    Re: Handeling NotFound records with condition

    Hello @Alejotecelec,

     

    if you want to do it this way you will have to set the "Run After" Condition so the next step always runs. But be careful. I think your failed action will have an output but I am sure you will find a way to manage that.

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,679 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow