I have published a power app that uses 3 tables. For one table I want to retrieve a column value by doing the following:
Coalesce (
LookUp(
'Schema.Table',
Category = "String1" && ItemCode = VarM.Item.ItemCode
).ValueColumn,
"-")
I want to match the category column with a string value and the ItemCode with the Itemcode from the variable of the item that I am currently observing in the app.
The weird thing is that everything works fine when I assign the 'System administrator' role to a user. But when a user only has a custom role where he has all(!) the rights for these tables set to 'organiation', it doesn't work. In that case it gives the error 'Error when trying to retrieve data from the network'.
The table is a virtual table which retrieves data from an sql server.
I saw some posts saying that this error is due to performance of the lookup formula, but that does not match with the fact that it works when a user has the role system administrator. Does anyone know what the issue might be here?