Skip to Content
avatar image
Former Member

Create Journal Entry With DI Api Error

Hi everybody,

I have a problem in creating journal entries with DI api.

When i would like to add the journal entry, it has an error:

  • Error Code: -5002
  • Error Message: You cannot edit totals in system currency [JDT1.SYSCred][line:1]

Here is my code:

JournalEntries entry = Company.GetBusinessObject(BoObjectTypes.oJournalEntries);

entry.DueDate = DateTime.Now;

entry.ReferenceDate = DateTime.Now;

entry.TaxDate = DateTime.Now;

entry.Series = 14;

entry.Lines.FCDebit = 0;

entry.Lines.FCCredit = 0;

entry.Lines.Debit = 6000;

entry.Lines.Credit = 0;

entry.Lines.DueDate = DateTime.Now;

entry.Lines.ShortName = "111000000";

entry.Lines.ReferenceDate1 = DateTime.Now;

entry.TaxDate = DateTime.Now;

entry.Lines.Add();

entry.Lines.FCDebit = 0;

entry.Lines.FCCredit = 0;

entry.Lines.Debit = 0;

entry.Lines.Credit = 6000;

entry.Lines.DueDate = DateTime.Now;

entry.Lines.ShortName = "491000000";

entry.Lines.ReferenceDate1 = DateTime.Now;

entry.TaxDate = DateTime.Now;

entry.Add();

Thanks for helping!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 09 at 10:16 AM

    I am facing a similar problem , I can add the Journal entry successfully of the UI but in DI API i get the error

    You cannot edit totals in system currency [JDT1.SYSCred][line: 1].

    Add comment
    10|10000 characters needed characters exceeded