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 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)
  • ManishSolanki Profile Picture
    15,091 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard