Showing results for 
Search instead for 
Did you mean: 
Advocate I
Advocate I

incompatible types error in Lookup()

I have 2 dataverse tables, call them A and B. In my canvas app, I want to create a collection where table A data is grouped by table B.type.

Table A

  • aid
  • name
  • price
  • B (lookup)

Table B

  • bid
  • name (auto-id)
  • type (choice column)
  • category (choice column)

In my canvas app I created a collection to cache table A's data since it doesn't change often and there's not a lot of it. Then I tried to add a column from table B to my collection.

ClearCollect(Acoll,Filter('A','A (Views)'.'Active As')); 

But there is an error with the Lookup when creating the typedAcoll collection: Incompatible types, GUID and Table.

I've tried a number of variations, but for some reason I cannot get the GUID for table B from Acoll. What am I doing wrong?



Resolver V
Resolver V



I have used below code to join Account and Contact Entity.

ClearCollect(AccountData, Filter(Accounts, 'Accounts (Views)'.'Active Accounts'));
ClearCollect(ContactData, Filter(Contacts, 'Contacts (Views)'.'Active Contacts'));
ClearCollect(TypeAccountData, AddColumns(AccountData, "Gender", LookUp(ContactData, Contact=AccountData[@'Primary Contact'].Contact,Gender)))


Try to follow the same approach for your tables. It should work.


Please mark my answer verified if this is helpful!


Bipin Kumar

Follow my Blog:

Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Users online (1,015)