
Hello
I've been using the Environment Variables function during my app development. This has worked (mostly) fine during the build, but now that I've got a good enough App to put into our test environment, I can no longer write to any of the lists.
I could select the variable site and lists during the import process no problem at all, but I get the 'specified record is not found' error when trying to write anything after the import process is done. (If I go into the App via the mobile App, I also get 'list not found' included alongside the record error)
The weird thing is, one of my buttons - which does a simple write of the DateTime to a list to make sure it's connected to Wifi/Data - is directly connected to a specific sharepoint list without using an environment variable and this throws the same error too. If I import the solution as unmanaged and reconnect this button to the exact same source, it then works perfectly fine.
I've made sure all the variables (even the 'static' ones PowerApps creates for non-variable lists) have their dependent objects etc. I've deleted the solution in the test environment and imported it afresh, but I'm absolutely baffled at what to try next.
As a follow up, I did have some joy in deleting the Env. Variables and doing them again, but that never seems to stick; always get the 'list not found' / 'record not found' error again at some point.