Singular expression refers to nonexistent object .... ARGGHHH!

(imported topic written by everestt23)

Hi All,

When I put my test relevance belowinto the Relevance debugger, I get the value of the key returned. When I add it as a property I get “Singular expression refers to nonexistent object” back from my clients, including the very same box I ran the debugger query on. Any ideas?

I have stripped down the revelance to remove all logic and simply (I hoped) report the value:

value “CertificateRevocation” of keys “HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings” of registry as string

Thanks in advance,

Tim.

(imported comment written by everestt23)

In old style Q ‘n’ A the output is as follows:

Q:value “CertificateRevocation” of keys “HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings” of registry as string

A: 0

T: 0.164 ms

I: singular string

(imported comment written by jessewk)

The BES Client runs as the system user whereas QnA runs in the current user context.

To access the HKCU hive of the registry via a retrieved property or Fixlet relevance, use the tips in this post:

http://forum.bigfix.com/viewtopic.php?id=11

-Jesse

(imported comment written by everestt23)

Magic Jesse. Now you tell me, the difference is obvious, but I still wouldn’t have known the solution. Thanks!