((name of key whose (((it = name of current user as lowercase OR it starts with name of current user as lowercase & “@”) of (it as string as lowercase) of (if (name of operating system =“Win2008R2” OR name of operating system =“WinVista”) then value “USERNAME” of key “Volatile Environment” of it else value “Logon User Name” of key “Software\Microsoft\Windows\CurrentVersion\Explorer” of it))) of key “HKEY_USERS” of registry) as string)
When I want to use the relevance to list current user registry ID like (S-1-5-21-3537188136-109395994-3563741723-1001),
some computer would show OK and some would show (Singular expression refers to nonexistent object.)
This error means one of the items in your relevance does not exist on some of your computers.
It might be one of your keys or you can use exists to help guard against that.
Plurals can also help, something like names of current users for example.