I have a PowerApp set up where there is an attachment field on a form using SharePoint. This attachment field used the 'Patch' function to automatically save attachments within OnAddFile. Recently, this functionality seems to have stopped working and I'm not sure why.
#OnAddFile:
Patch('Product Phase', First(Filter('Product Phase', ID=gal_product_phase.Selected.Id)), frm_product_atch.Updates);
This used to behave as expected and any attachment would immediately save to the form when being attached. This is how we want it to behave. I was informed this stopped working roughly a week ago when a user asked why they could no longer attach files to the form. It turns out this is happening for all users, myself included.
I have spent hours trying to debug this but cannot figure out why it no longer works. The attachment field now resets to its previous state when the Patch is run. I have tried separating this into a button which patches the form instead, but it behaves the same way: new attachments are discarded. The Selected form ID matches the ID of the target form and all other fields on the form update correctly.
I am experiencing the same behavior on other forms I have built as well. It seems like something changed in PowerApps that disabled this behavior.
Was this functionality changed? How are attachments supposed to be saved to a form now?