cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mgodby
Post Patron
Post Patron

Whys does the lookup field not have any data?

I'm trying to use a lookup field to Users to set the defaultselectedfields in a combobox but am noticing that the lookup field doesn't return any data.

 

emptyvalues2.png

I can see two rows show up, which is correct but they are empty. The strange thing is how if I use the 'Purchase Requisition Copy Tos' in a gallery I can access the 'Full Name' using the look up field.

 

galleryfullname.png

Is this a limitation with PowerApps? I don't understand how I can access the data through the lookup field in the gallery, but not outside of it. 

2 REPLIES 2
PowerAddict
Super User
Super User

In your combo box, what is selected in the fields to display property (it's probably called something else but should be below the Datasource property on the right hand panel). A field that has no value is probably selected which is why you see 2 entries but no values.

Let me know if this works.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit Bhatia
https://thepoweraddict.com
v-xida-msft
Community Support
Community Support

Hi @Mgodby ,

Could you please share a bit more about the 'The User' column in your 'Purchase Requisition Copy Tos' CDS Entity? Is it a LookUp field which references values from the Users Entity?

 

Actually, it is an known issue with the LookUp field in CDS Entity. The user @eselover has faced similar issue with you, please check the response within the following thread:

https://powerusers.microsoft.com/t5/Building-Power-Apps-Formerly/Common-Data-Service-Returns-no-data...

 

Could you please share a bit more about the ComboBox that you mentioned? Is it connected to Users Entity? If you want to set the DefaultSelectedItems property of a ComboBox based on the 'The User' field in your 'Purchase Requisition Copy Tos' Entity, as an alternative solution, you could cosider set the DefaultSelectedItems property of ComboBox based on Users Entity directly.

 

Best regards,

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

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