I have a global relationship called sysadmin (globals.relation (value = 1) :: relation (value = 1))
Which is a relation to one record of settings table.
I am using this relation in the startup method of the solution. Strangely some times I get errors like (sysadmin not defined). But It does not happen all the time. I does happen in client and developer.
This is a long time existing problem that I used to have frequently (it did get better with 2.2).
The error we get is always a
ReferenceError: relation xy is not defined
Sometimes this happens after a while of user action (so in the middle of a session). It always happens when we export a solution without having opened it first (after you opened it once, it works).