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

 

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
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (3,164)