Illegal name for class or type: <name>

You used the word Object as the name of a user-defined class or data type. Object is a LotusScript® reserved word.

Change the name of the user-defined class or data type.