Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Array variable getting depulcates

I have the following flow that creates, populates, and then posts the contents of an array.

  1. Initialize Empty Array
  2. HTTP GET Items
  3. For Each Item
    1. HTTP GET Item Details
    2. Append to Array
  4. HTTP POST Array

When looking in the run history, I can see two items returned in Step 2 and the For Each has 2 iterations. However, when looking at Step 4, I'm seeing 3 items returned in the array where the first item is duplicated and added twice.


Any advice on how I can troubleshoot? 

Super User III
Super User III

Hey @jgalus 


I am not sure why duplicate items are being returned but you can use - 


union() to remove duplicated items - For details see


If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Unfortunately, if there are legitimate duplicates I'd need to include those.

Helpful resources

Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (4,060)