web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Unable to process temp...
Power Automate
Unanswered

Unable to process template language expressions in action 'Compose_2' inputs at line '0' and column '0': 'The template language function 'union' expects either a comma separated list of arrays

(0) ShareShare
ReportReport
Posted on by 3

I have a flow that runs a select on a power BI dataset to get a list of email addresses. The Output produced a list a email addresses with duplicates as follows:

 

GulS_0-1687864105344.png

I then run a compose with 

union(body('Select'),union(body('Select')))

GulS_1-1687864168348.png

This step produces an error
Unable to process template language expressions in action 'Compose_2' inputs at line '0' and column '0': 'The template language function 'union' expects either a comma separated list of arrays or a comma separated list of objects as its parameters. The function was invoked with '1' parameter(s).

GulS_2-1687864267516.png

Any ideas on how to solve?



Categories:
I have the same question (0)
  • Manish Solanki Profile Picture
    15,167 Moderator on at

    Hi @GulS 

     

    To get the distinct email addresses using union() formula, pls try the below expression:

    union(body('Select'),body('Select'))

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • GulS Profile Picture
    3 on at

    Thank you. That solved the issue

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard