LedgerVoucherObject object not initialized.

Hi,

I created a customization for uploading journals from a file. But i cannot post the journal. The journal i’m posting has intercompany transactions.

LedgerVoucherObject object not initialized.

Stack trace

(S)\Classes\CustVendVoucher\initCustVendTrans - line 213

(S)\Classes\CustVoucher\initCustVendTrans - line 32

(S)\Classes\CustVoucherJournal\initCustVendTrans - line 11

(S)\Classes\CustVendVoucher\post - line 317

(S)\Classes\CustVoucher\post - line 48

(S)\Classes\LedgerJournalTransUpdateCust\postNewCustomerVoucher - line 156

(S)\Classes\LedgerJournalTransUpdateCust\updateNow - line 286

(S)\Classes\LedgerJournalCheckPost\postTrans - line 257

(S)\Classes\LedgerJournalCheckPost\postJournalInterCompany - line 240

(S)\Classes\LedgerJournalCheckPost\postJournal - line 1049

(S)\Classes\LedgerJournalCheckPost\run - line 155

(S)\Classes\LedgerJournalPost\post - line 140

(C)\Classes\LedgerJournalPost\main - line 26

(C)\Classes\FormFunctionButtonControl\Clicked

(C)\Forms\LedgerJournalTable\Designs\DesignList\Post\Methods\Clicked - line 24

I tried checking the number sequence of vouchers. Still issue exist.
Any solutions or suggestions are greatly appreciated.

Thanks