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 / Power Automate fails t...
Power Automate
Unanswered

Power Automate fails to add to a Sharepoint list due to duplicate value issue even though the flow detects the record already exists and runs an Update Item.

(0) ShareShare
ReportReport
Posted on by 10

I have a flow which reads a table from an excel spreadsheet, reviews a SharePoint list and is it finds the same record (in this case device serial number) it will update the record, or create a new one.  Almost every record in the excel should already exist so the update item flow works in every other case except this one.

 

I have deleted the record from the SharePoint list and it recreates it but also it doesn't fail to update every time by the looks of it.

 

Why is this record being detected as a duplicate when the same rules for over 2000 other records work as expected?

 

Also, i have noticed that the ID given back to the record suggests it is recovering the deleted entry rather that creating a new one.  Is this possible?

Categories:
I have the same question (0)
  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @P1c0Pugh  Please share your flow screens. This will help us to understand your flow design.

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

  • nilampathan Profile Picture
    2 on at

    Dear Team,

     

    1) please recommended  I have bulk of PDF invoices convert into excel

     

    2) also how can i automate file that  daily headcount sheet getting from email (multiple partner) how can automate this file 

    for example day 1 paste data day 2 append daily emails

     

  • P1c0Pugh Profile Picture
    10 on at

    The bit where it fails is in this section

    P1c0Pugh_0-1674130531395.png

    The get items looks for the serial number of a device and if it finds it does the Update Item and if it doesn't it does the create.  The update item correctly gets called.

     

  • P1c0Pugh Profile Picture
    10 on at

    The output from the run shows.

    P1c0Pugh_1-1674130704349.png

     

    As you will see there are over 2000 items to update, the vast majority will be of type update, and this is the only record that fails. 

  • P1c0Pugh Profile Picture
    10 on at

    P1c0Pugh_2-1674130795444.png

     

    this is the error

     

    {
      "status": 400,
      "message": "The list item could not be added or updated because duplicate values were found in the following field(s) in the list: [Device Serial Number].\r\nclientRequestId: "
     
    But there is no duplicate record.
     
    It seems that for this record, it tries to update but has to create a new record first.  As I said I deleted this record from the sharepoint list, and it recreated fine, but it recreated with the ID number 556 and I would have thought if it was deleted it would get created with a ID of nearly 3000 as this is how many records are in the list.
     
    The excel file is an existing on, already has the table defined and is used in other flows fine.
    }

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 664

#2
Haque Profile Picture

Haque 460

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard