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 Apps
Answered

Bug in Lookup?

(0) ShareShare
ReportReport
Posted on by 8

Hi,

 

I have an issue with the LookUp function.

I create a variable in the OnVisible property of a screen in the following way:

 

UpdateContext({SeminarData : AddColumns(EmployeeToLunchSeminar,
 "SeminarName", LunchSeminar.Value,
 "EmployeeEmail", Employee.Value,
 "SeminarID", Value('LunchSeminar:ID'.Value))})

 

 

Then, in a gallery (same screen), I want to add additional columns to the variable in the following way:

 

AddColumns(SeminarData,
 "Topic", LookUp(LunchSeminar, ID = SeminarID).Topic)

 

 

But PowerApps says that in the above code, 'LunchSeminar' is an invalid argument. But the 'LunchSeminar' data table exists. If I use the following code in the text property of a label inside the gallery, it works

 

 

LookUp(LunchSeminar, ID = ThisItem.SeminarID).Topic

 

 

Also, this setup worked fine for me in a different screen with a different data source. Why is 'LunchSeminar' is an invalid argument?

 

Also, if I use the following code in the OnVisible property of a screen:

UpdateContext(LunchSeminarVariable : LunchSeminar});

And use the LunchSeminarVariable in the LookUp, it works perfectly. Why?

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,748 Most Valuable Professional on at

    @AkosMakovics ,

    Use a collection - you are dealing with a table.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 339 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 289

#3
Mohsin Ali Profile Picture

Mohsin Ali 228

Last 30 days Overall leaderboard