cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mhenderlight
Helper III
Helper III

Lookup call fails

I have a screen that has a gallery list that is filtered, once you choose one of the items in the list I navigate to another screen where I use the following lookup call:

 

LookUp(Students, 'Student Full Name'=Upper(TemplateGalleryList2.Selected.Result), 'Student Full Name')

 

It is grabbing the correct value for TemplateGalleryList2.Selected.Result, but I get a syntax error from the server:

 

The requested operation is invalid. Server Response: Students failed: Syntax error at position 12 in 'Student Full Name eq 'DOE, JOHN''. inner exception: Syntax error at position 12 in 'Student Full Name eq 'DOE, JOHN''. clientRequestId: d6d61879-1866-4b2d-a708-35254c67465a

 

I don't get it.

11 REPLIES 11
Drrickryp
Super User
Super User

@mhenderlight 

You can add a label to the gallery with the text property Lookup(Yourdatasource, ID=ThisItem.Result, FullName)

View solution in original post

mhenderlight
Helper III
Helper III

Great call!  Works fine, thanks so much for the help!

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, 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!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,357)