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 Apps / Collect-Lookup-Invalid...
Power Apps
Answered

Collect-Lookup-Invalid argument type

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Capture.JPG

Categories:
I have the same question (0)
  • v-yuxima-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Do you want to get the table which has the Address’s TCG# is match your second table?

    I think you can change your formula expression as next:

    Initial Collection: ClearCollect(CollIncompletesv6, Deactivation Incompletes)

    Add Address Collection:ClearCollect(collUpdated6,AddColumns(CollIncompletesv6,”AddressLot”,LookUP(‘Master List’, TCG#= CollIncompletesv6.TCG#,Address)))

     

    I test as this:

    Button.Onselect: ClearCollect(test2,'[dbo].[Table_20190222DI]');ClearCollect(test3,AddColumns(test2,"Addresslot",LookUp('[dbo].[Table_20190222MasterTable]','TCG#' in test2.'TCG#',Address)))  (on your side you can change to your tale’s and column’s name)

    20190222invalidargumenttype1.jpg

    Result:

    20190222invalidargument2.jpg

    20190222invalidargument3.jpg

     

    Hope this can be helpful.

    Best Regards.

    Yumia

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you Yumia

    I think this is close but I am getting the same results as you... but... the addresses end up being the same for all of the records in the updated collection
    I was needing the final collection to look like

    123    101 no where street

    789    103 hereweare dr

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Try the following (going back to your original collect statement rather than creating another one).

     

       ClearCollect(collUpdated6, AddColumns(CollIncompletesv6, "AddressLot", LookUp('Master List', 'TCG#'=CollIncompletesv6[@'TCG#']).Address))

     

    This should give you the original collection you wanted - the difference here is the use of a disambiguation operator that will observe your Record Scope properly.

     

    See if that helps.

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    YES!!!!!!!!!!!!  THANK YOU!!!!  It works

     

    Yumia and Randy - I appreciate what you have taught me..... I am off running again.  Smiley Very Happy

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard