Skip to main content
Community site session details

Community site session details

Session Id : dTK45CSSJLDY58QMgRzxvX
Power Automate - General Discussion
Answered

The list item could not be added or updated because duplicate values

Like (0) ShareShare
ReportReport
Posted on 9 May 2023 17:16:38 by 114

I have a flow which is triggered when a xlsx export is saved in a certain folder.

 

It deletes all entries of an existing SharePoint list and then writes the contents of the excel file to said SharePoint list. Once done, it deletes the file that triggered this flow. 

 

This has been working fine until today where I get the following error message:

 

The list item could not be added or updated because duplicate values were found in the following field(s) in the list: [Area].
clientRequestId: 1582e916-1fbf-4200-af23-e2960c076f46
serviceRequestId: 1582e916-1fbf-4200-af23-e2960c076f46

 

What is strange is there is no duplicate entry in the excel file and all entries do seem to be written to the SharePoint list, it's just that the flow states it's failed and the file is not deleted.  I'm not sure why this is happening, does anyone have any ideas.

 

Many thanks, 

 

  • Verified answer
    BenBennett321 Profile Picture
    114 on 10 May 2023 at 09:51:06
    Re: The list item could not be added or updated because duplicate values

    Hi, I worked out the problem - The limit for the Get Items part of the flow which deletes the entries on the list (Before it then writes the new set)  is 100 by default, but it was trying to update 104. This meant that not all the entries were deleted, so they remained and hence there was a duplication on the Sharepoint List at the ned of the flow. 

     

    I've increased the Top Count to 200 (as there will never be more than that in my import) and it works fine.

     

    Many thanks

  • Nived_Nambiar Profile Picture
    17,982 Super User 2025 Season 2 on 09 May 2023 at 17:33:38
    Re: The list item could not be added or updated because duplicate values

    Hi @BenBennett321 

     

    is Area a column under the list ?

     

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete