The error itself seems to occur when an object type can't be resolved.
Unfortunately I haven't encountered the error itself, but ... maybe there's something about one of the classes that needs to change.
Also, you've probably been through the song & dance about the length & capitalization of calls. I'm unsurprised that the variable names are also subject to the conditions inherent in BASIC / LotusScript, so (real, effective) name length and capitalization matter.