Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Handling error from Customer Engagement connector

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I am currently getting a list of contacts from a SQL database that has advanced segmentation done of CRM data.

 

I am currently running a for each loop in power automate to add a contact to a Customer Engagement (Dot Digital) address book, which could potentially already exist in our Customer Engagement platform but may not be in the address book.

 

When a contact is suppressed already in the Customer Engagement platform, the step in the flow returns a 404. Although I am handling this error by using a run on error step, i am unable to use a Terminate inside the for each. When the flow is finished it is showing as failed, so each day will show as failed.

 

Can anyone confirmed the best way to handle this so that even if we get an expected 404, that we can handle it in a way that it looks like the flow has run successfully?

 

 

 

  • Community Power Platform Member Profile Picture
    on at
    Re: Handling error from Customer Engagement connector

    Hi @danielbazetto,

     

    I have ended up putting a counter in that increases a variable on a failure. Once the foreach finishes running, I then do a check to see if the counter is higher than 0 and fire a terminate outside the foreach. This still then shows the flow itself as being successful, albeit with 'Failed' steps in it.

     

    Please do let me know if there is another way of dealing with this.

     

    Thanks

     

    James 

  • danielbazetto Profile Picture
    on at
    Re: Handling error from Customer Engagement connector

    Hi @Anonymous ,

     

    I found your idea of handling it really good, I am not sure how differently we could handle that scenario.

     

    Lets wait for someone else input here but meanwhile let me ask around to some colleagues of mine about any other suggestion.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

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

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow