Hello,
I am attempting to return a list of distinct values from two array variables which contain a list of integers. However, when I use the Union function it simply merges the two lists of numbers together, creating duplicate values. These values even remain when I run a second Union function of the output against itself. The weirdest part is that when I copy these values into another test Flow I can get the Union function to behave how I would like it to.
Array 1 - insight_pns

Array 2 - sharepoint_pns

Results from Union function - union(variables('insight_pns'), variables('sharepoint_pns'))

Results from second Union function - union(outputs('Compose'),outputs('Compose'))

Any idea what's going wrong here? I tried to re-create the Flow and the error persists.