Error "object not initialized"

Dear All,

I have a error…when I post payment journal.
(Dynamics AX 2012 R2)

Infolog =================
LedgerVoucherObject object not initialized.

Stack trace

(S)\Classes\CustVendVoucher\initCustVendTrans - line 213
(S)\Classes\VendVoucher\initCustVendTrans - line 16
(S)\Classes\CustVendVoucher\post - line 317
(S)\Classes\VendVoucher\post - line 20
(S)\Classes\VendVoucherTaxWithhold\post - line 12
(S)\Classes\TaxWithhold\postTaxWithhold - line 249
(S)\Classes\LedgerJournalTransUpdateVend\postNewVendorVoucher - line 52
(S)\Classes\LedgerJournalTransUpdateVend\updateNow - line 353
(S)\Classes\LedgerJournalCheckPost\postTrans - line 306
(S)\Classes\LedgerJournalCheckPost\postJournal - line 819
(S)\Classes\LedgerJournalCheckPost\run - line 153
(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 use Thailand localization function “Withholding tax”.
I get a this erro in case only incluid “Withholding tax” in journal,
I can post journal not incluid “Withholding tax”.

How can I solve this ?? Could anyone help me ??

Hi Yuji,

I also experienced the same error. Temporarily, I asked the client to reencode the transaction to post the transaction. But as this includes a back end editing of data, this is a temporary action.

Have you resolved this issue? Can you post it here?

Mackie

Dear All,

I have a error…when I post payment journal.

(Dynamics AX 2012 (Feature Pack) )

Infolog =================

LedgerVoucherObject object not initialized.

Stack trace

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

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

(S)\Classes\VendVoucher\post - line 20

(S)\Classes\VendVoucherTaxWithhold\post - line 12

(S)\Classes\TaxWithhold\postTaxWithhold - line 201

(S)\Classes\LedgerJournalTransUpdateVend\postNewVendorVoucher - line 25

(S)\Classes\LedgerJournalTransUpdateVend\updateNow - line 196

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

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

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

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

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

(C)\Classes\FormFunctionButtonControl\Clicked

(C)\Forms\LedgerJournalTransVendPaym\Designs\DesignList\PostJournal\Methods\Clicked - line 11

=================

I get a this error in some Journal in case only included “Withholding tax” in journal,

But some Journal same type post fine.

How can I solve this ?? Could anyone help me ??

Hi Yuji,

Try checking if you maximize the number of Enterprise user. We experience the same issue and managed to temporarily solve it by checking the maximum number of enterprise user. It seems that it happens whenever we exceed the number of maximum enterprise users…

Anyway, did you solve this issue?

Thanks,

Schneizer

Hi Yuji,

Try changing the Voucher Number sequence for the Payment Voucher. It worked for me.

Regards,

Manjunath Reddy G.