
Announcements
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
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