Create a journal Entry programmatically: Error Contract Failure Invalid Essence

SOLVED

Hi all,

I want to import journal entries from excel files. 

Unfortunately, I get this error:

The value are like this:

My code are like this:

Sage.Accounting.Common.NominalSpecification nominalSpecification = Sage.Accounting.Common.NominalSpecificationFactory.Factory.CreateNew(v.AccountNumber, v.CostCentre, v.Department);

// Set the nominal specification, narrative and debit amount
Sage.Accounting.NominalLedger.NominalJournalInstrumentItem instrumentItem = instrument.CreateNewInstrumentItem();

instrumentItem.NominalSpecification = nominalSpecification;

And I can confirm the account number exist.