cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
vladimir84
Helper V
Helper V

[BUG] Patch saving null when combo box uses SQL view as the data source

Hi,

I have a "weird" bug to report:

I have two combo boxes: one has a SQL table, the second has a SQL View (containing also the id column).

When I do a Patch, the first one's value is saved correctly (I use FirstCombo.Selected.id, because it's a single selection) 

while the other one with the same SecondCombo.Selected.id is saved as blank or null in SQL.

 

When I use the dropdown with the SQL view, it is patched correctly

 

I tried using the First(SecondCombo.SelectedItems).id, same result.

 

Is this some sort of limitation on the combobox? 

The tables are tiny, like 10-20 rows. 

 

I don't get error messages, the Patch is executed successfully.

1 ACCEPTED SOLUTION

Accepted Solutions
timl
Super User
Super User

Hi @vladimir84 

One of the first things I would check is the explicit column selection setting. This may be the reason why PowerApps returns a null ID value. If you turn this off, the stat make a difference?

timl_0-1599057346901.png

 

View solution in original post

2 REPLIES 2
timl
Super User
Super User

Hi @vladimir84 

One of the first things I would check is the explicit column selection setting. This may be the reason why PowerApps returns a null ID value. If you turn this off, the stat make a difference?

timl_0-1599057346901.png

 

View solution in original post

Yup, that did it.

Also, it was not noticeable in the editor. It was apparent only when the end-user was testing it.

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,524)