just out of curiosity, have you tried the same thing in a SS 1.0 script? I only ask because I have seen numerous instances where a permission issue in SS 2.0 either results in null/undefined values or a generic Unexpected Error, whereas the same code in SS 1.0 throws a descriptive error stating the particular permission that is needed (and lacking).