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 / When an SharePoint Ite...
Power Automate
Unanswered

When an SharePoint Item is Created or Modified - Creating Duplicate Items

(0) ShareShare
ReportReport
Posted on by 63

Hello

 

Could someone guide me on how to make this flow work without error and without duplicate records being created.

 

I'm working on with two SharePoint Lists Source list: BATest3 and Destination list: BATest4

 

I have an automated flow created and that flow creates a new item on my BATest4 (destination list) when Running Total >0 and after copying the items delete from BATest3 (Source list)

 

The issue I'm facing is every time the flow triggers it creates duplicate records in BATest4 for the same items. Also, I get the following error and still it create items with duplicate records

"The execution of template action 'Apply_to_each_3' failed: the result of the evaluation of 'foreach' expression '@outputs('Get_items')?['body/value']' is of type 'Null'. The result must be a valid array."

 

How to move the list from BATest3 to BATest4 with out any duplicate and without above error. I'm attaching the flow screen shot below. Thanks in advance

deepaks1_0-1651749674922.pngdeepaks1_1-1651749737590.png

deepaks1_3-1651749943093.png

 

deepaks1_2-1651749766788.png

 

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @deepaks1 ,

     

    The root cause of the error is the 'apply to each'.

    I'm confused why you use 'get items' action in your flow.

    In your subsequent actions, you use parameters which are all from the 'get items' action.

    So the flow add the 'apply to each' action automatically because the 'get items' return an array.

    You could try to delete 'get items' action and 'Apply to each' action and use the parameters from your trigger.

     

    Best Regards,

    Wearsky

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard