Creating GL account with BOI

SOLVED

Hi,

I'm trying to create GL account in Sage 100 ERP with BOI.

Here is my code:

// omitted initialize and login steps
GlAccountBus.nSetKeyValue("Account$","235-04-00")
GlAccountBus.nSetKey() // Error is on this line
GlAccountBus.sLastErrorMsg // returns: The 235-04-00 is invalid.
GlAccountBus.nSetValue("AccountDesc$", "Test Description")
GlAccountBus.nWrite()

Has anybody created GL account programmatically? Can you suggest what I missed?

Thanks in advance.