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
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

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!

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