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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

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 (793)