Cannot read property 'updateData' of undefined
Randomnly get this error on my gallery, which is connected with the table of SQL Server database.
Gallery is being filtered based on selections from comboboxes.
Usually get this error, when all comboboxes are cleared and gallery shows whole table.
Could you please share the items property of the Gallery?
Besides, what is the "updateData" mentioned in the error message?
For the Items property of the Gallery control, we could write the formula in the format below:
If(IsEmpty(ComboBox.selectedItems), [dbo].[TableName], filter([dbo].[TableName], expression) )
Let me know if the format above works.
I am also now getting this error - "cannot read property 'updatedata' of undefined".
It is intermittent. Basically, a single field is being updated in a SQL table using Patch and the gallery is refreshed. I can perform action 10 times without seeing error, then, bingo. App is in release 3.18082.42.
Sorry, but don't remember as it is about a year ago. My guess is that it just went away. If I found a solution I would have posted it. But I will think on it for a while and see if something comes to mind.
@EdwardAhn , are you having trouble with a Patch function? My issue was related to trying to patch values from a form, but I was submitting the form and then patching in the "On Success" property. Problem was at that point, the form had already been submitted and cleared so the value was gone.
My fix was to write the fields I needed to patch to variables in the "Submit" button control before I submitted the form. Then use the variables in the Patch function instead of having the Patch function refer directly to the form (or maybe gallery in your case?) Hope that helps.
Fill out a quick form to claim your user group badge now!
Find out where you can attend!
Features releasing from October 2019 through March 2020
The largest Power BI, Power Platform, and Data conference in New Zealand