web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Handling error from Cu...
Power Automate
Unanswered

Handling error from Customer Engagement connector

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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?

 

 

 

Categories:
I have the same question (0)
  • danielbazetto Profile Picture
    Microsoft Employee on at

    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.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 308

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 226 Most Valuable Professional

Last 30 days Overall leaderboard