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

Notifications

Announcements

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

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
    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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard