• This function will silently fail (no error msg) if the object you are searching for is new and does not yet appear in the object tree. Refreshing the tree may be necessary after creating an object. That would explain why it appeared to fail, but then later worked.