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 / Detect error alerts fr...
Power Automate
Answered

Detect error alerts from Salesforce when creating accounts

(0) ShareShare
ReportReport
Posted on by 53

Hi,

 

I currently have a Flow that grabs accounts from Dynamics CRM and inserts to Salesforce. When it attempts to insert to Salesforce, there is a matching rule configured in Salesforce that checks for different criteria to determine whether the account is a duplicate or not. If it is, the account won't be inserted and Salesforce returns the following:

{
  "status"400,
  "message""Salesforce failed to complete task: Message: Duplicate Alert\r\nclientRequestId: fb141ec7-c5b4-4a2d-9371-18e3f30339e4",
  "error"null,
  "source""Salesforce.Common",
  "errors": []
}
 
The flow would then stop executing, even though there are additional accounts to process. I was wondering if there's a way to make Flow detect this error, send me an email and then continue processing? (e.g. it would bypass this account).
 
Sincerely,
 
Jason
 
Categories:
I have the same question (0)
  • Verified answer
    abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @JasonYeung 

     

    Yes you can catch error handling in Power Automate. Please my blog which explains a similar scenario

     

    Power Automate – How to find a folder exists (Dynamic) in SharePoint? | @mydevexperience #Flownaut Super User III (@abm) (wordpress.com)

     

    Here is another link 

     

    Try-Catch pattern in Microsoft Flow • Tomasz Poszytek, Business Applications MVP

     

    Thanks

  • Jason Yeung Profile Picture
    53 on at

    @abm,

     

    Thanks for your help!

     

    Sincerely,

     

    Jason

     

  • askondo Profile Picture
    Microsoft Employee on at

    @abm Thanks for always keeping the forum active.

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 557

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 264 Super User 2026 Season 1

Last 30 days Overall leaderboard