Showing results for 
Search instead for 
Did you mean: 
Community Champion
Community Champion

BUG: Patch from Gallery?


Fairly certain this is a bug. Someone please test on their end to confirm.


  • Data Source: Collection
  • Control Type: Textbox within a Gallery
  • Action: OnChange 
    • Code: THIS CORRECTLY UPDATES THE COLLECTION: Patch(colTest, ThisItem, { SerialNumber: txtSerial.Text })
  • Control Type: Dropdown within a GalleryCode
  • Action: OnChange
    • Code: THIS DOES NOT UPDATE THE COLLECTION: Patch(colTest, ThisItem, {ReasonCode: ddReasonCode.Selected.Value})

I know a workaround is to use UpdateIf in place of Patch. I'm not looking for a workaround, I'm looking to report a potential bug.

Can anyone else reproduce this behavior? If so, lets get it addressed so that code is consistent between controls.Thanks

Community Champion
Community Champion

Same issue with a Checkbox control; OnCheck/OnUncheck properties.

This works for all controls (Textbox OnChange, Dropdown OnChange, Checkbox On/UnCheck) whereas the Patch() code above only works for Textbox OnChange.


    column1 = "somethingUnique",
        SerialNumber: txtSerial.Text


Hi ericonline,


Thank you for your post. We’d like to work with you for this issue. Could you open a support ticket with our team so we can help? Please reference this thread when you open the case.


More information about how to open a ticket is available here:


Thank you!


Helpful resources


Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

New Power Super Users


We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Top Solution Authors
Top Kudoed Authors
Users online (66,556)