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

Notifications

Announcements

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 'Union_....'

(0) ShareShare
ReportReport
Posted on by

I am getting the following error when testing my flow to export a sharepoint list with 7000+ entries, Please, share me your thought, I can't seem to figure out the cause of the error. 
"Unable to process template language expressions in action 'Union_result_with_arrItems' inputs at line '1' and column '26092': 'Template language function 'union' expects parameters of same type, but found 'Array,Object' distinct types.'."

 

Screenshot 2020-12-28 173407.png

Categories:
I have the same question (0)
  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @Anonymous , from the error it looks like you are using Union function the "Union result with arrItems" action, and that union function has parameters of array and object. Union function can accept all array parameters or all object parameters but not both at same time.

  • Community Power Platform Member Profile Picture
    on at

    @annajhaveri  Thank you for replying, I have fixed the union function, but now the flow is running but not completing...any ideas?

     

    Screenshot 2020-12-29 131342.png

  • Paulie78 Profile Picture
    8,422 Moderator on at

    What is the condition on the do until? When boolEmpty is true? For a query like this why not use pagination on the get items action, then you will not need to have the do until loop.

  • Community Power Platform Member Profile Picture
    on at

    Hello @Paulie78 ,
    I am trying to get more then 7000 entries from sharepoint to excel, and I don't have a premium plan of power automate so I am using do until loop.
    I am following this guide to make my flow "Get more than 5000 items from SharePoint with Power Automate (tachytelic.net)"


  • Paulie78 Profile Picture
    8,422 Moderator on at

    Ok, I wrote that guide.. I guess boolEmpty is never being set to True. You could try this method instead, easier:

    https://www.tachytelic.net/2020/12/power-automate-sharepoint-5000-items-easy/

    But the method you are using should also work.

     

  • Community Power Platform Member Profile Picture
    on at

    Hello @Paulie78 
    Thank you for sharing this great guide for everyone.
    Unfortantely I seem to be doing something wrong in my steps when editing the flow, because I am getting this error 

    odata.error":{"code":"-1, Microsoft.SharePoint.Client.InvalidClientQueryException","message":{"lang":"en-US","value":"The expression \"{\"listName\":\"DailyReport\",\"fields\":\"ID,SN\"}\" is not valid."}}}

     

    I tried creating the flow from scratch and impoting your flow and changing the settings but none of them seem to work. 😓

  • Paulie78 Profile Picture
    8,422 Moderator on at

    What step does this happen in? 

  • Community Power Platform Member Profile Picture
    on at

    Hello @Paulie78 

    The error happens in "EachThread>>QuerySharepoint"

    Screenshot 2021-01-05 164633.png

  • Community Power Platform Member Profile Picture
    on at

    Hey @Anonymous @Paulie78 how did you fix the union error above? I am having the exact same problem with Array, Object

  • adedapo Profile Picture
    256 on at

    Union has a parameter limit of 10 items. I.e. it can't work with more than 10 arrays.
    Use this instead

    replace(join(your_array_of_arrays,''),'][',',')

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 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard