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

Community Support
Community Support


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

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

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.


New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,613)