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 / Catch duplicate list i...
Power Automate
Answered

Catch duplicate list items error in the flow

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

Is there a way how to catch duplicate list items error in the flow and if found, not fail the flow but end it?

I have a column in the SharePoint list, where I'm enforcing unique values:

xsomej33_0-1645788774909.png

Now the flow fails (creating a new record on the list based on some condition) if there already is an item with the same value in that column:

xsomej33_1-1645788841839.png

Can I somehow catch that error and not fail the flow in such case?

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

    Hi Xsomej,

    You could set configure run after to distinguish whether sharepoint actions failed due to 'duplicate' value with expression> actions('<Name of the action>').error.message
    to keep you flow running to the end. While be note that the whole flow run status still would display as failed even it finished all operations. 
    Related community post for reference>
    https://powerusers.microsoft.com/t5/Power-Automate-Ideas/Get-Error-code-in-flow/idi-p/278687
    https://powerusers.microsoft.com/t5/Using-Flows/Get-error-message-for-the-action-on-failure/td-p/311558

    Johnnyg_0-1645949041565.png

     

  • xsomej33 Profile Picture
    on at

    Hi @Johnnyg,

     

    Thanks for your tip. Could you please show me the full expression syntax?
    For this one:

    actions('Create_item_in-pre-assessment_list').error.message

    It's throwing the error below:

    xsomej33_0-1646290870313.png

     



     

  • Verified answer
    xsomej33 Profile Picture
    on at

    I was able to fix that myself using the following syntax:

     

    actions('Action_Name').outputs.body.message

    I also used that in the Compose action to get the error message as a string.

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 274 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 175

#3
Haque Profile Picture

Haque 166

Last 30 days Overall leaderboard