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

Community site session details

Session Id :
Power Automate - Building Flows
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?



I have the same question (0)
  • ManishSolanki Profile Picture
    15,089 Super User 2025 Season 2 on at
    Re: 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

    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
    Re: 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

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 722 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 461 Moderator

#3
developerAJ Profile Picture

developerAJ 283

Last 30 days Overall leaderboard