Error when invoicing PO applying pre-payment. AccountingDistributionRule object not initialized.

This question has suggested answer(s)

Hi,

In the AX2012 R2 CU3 VPC, I got this Error when invoicing PO applying pre-payment. Any help is appreciated.

Note - I compiled the VPC but no help.

 

AccountingDistributionRule object not initialized.

Stack trace (S)\Classes\AccountingDistributionRule\newRule - line 36 (S)\Classes\AccountingPolicy\determineDistributionRule - line 16 (S)\Classes\AccountingPolicy\parmDistributionRule - line 3 (S)\Classes\AccountingDistributionProcessor\processDistributeAmount - line 42 (S)\Classes\AccountingDistributionProcessor\distributeAmount - line 13 (S)\Classes\AccountingDistributionProcessor\processDistributeMonetaryAmountChildren - line 28 (S)\Classes\AccountingDistributionProcessor\processActionDistribute - line 10 (S)\Classes\AccountingDistributionProcessor\distribute - line 17 (S)\Classes\AccountingDistributionProcessor\process - line 45 (S)\Classes\AccountingDistributionProcessor\distributeSourceDocumentLineItem - line 66 (S)\Classes\SourceDocumentLineState\distribute - line 17 (S)\Classes\SourceDocumentLineStateDraft\doTransition - line 12 (S)\Classes\SourceDocumentStateBase\transition - line 27 (S)\Classes\SourceDocumentStateBase\performTransitionOrMaintenance - line 7 (S)\Classes\SourceDocumentLineState\performTransitionOrMaintenance - line 34 (S)\Classes\SourceDocumentStateBase\transitionTo - line 15 (S)\Classes\SourceDocumentProcessorBase\submit - line 11 (S)\Classes\SourceDocumentLineProcessor\submitSourceDocumentLineServer - line 61 (S)\Classes\SourceDocumentLineProcessor\submitSourceDocLineWithAccountingPolicy - line 51 (S)\Classes\SourceDocumentStateInProcess\transitionSourceDocumentLines - line 51 (S)\Classes\SourceDocumentStateInProcess\doTransition - line 12 (S)\Classes\SourceDocumentStateBase\transition - line 27 (S)\Classes\SourceDocumentStateBase\performTransitionOrMaintenance - line 7 (S)\Classes\SourceDocumentStateBase\transitionTo - line 15 (S)\Classes\SourceDocumentProcessorBase\submit - line 11 (S)\Classes\SourceDocumentProcessor\submitSourceDocumentImplementation - line 49 (S)\Classes\SourceDocumentProcessorFacade\processHeaderImplementations - line 24 (S)\Classes\PurchInvoiceJournalPost\processSourceDocument - line 10 (S)\Classes\FormletterJournalPost\post - line 30 (S)\Classes\FormletterJournalPost\run - line 11 (S)\Classes\VendAdvanceInvoice_Application\postJournal - line 10 (S)\Classes\VendAdvanceInvoice_Application\processAdvances - line 36 (S)\Classes\PurchInvoiceJournalPost\endUpdate - line 67 (S)\Classes\FormletterJournalPost\post - line 264 (S)\Classes\FormletterJournalPost\run - line 11 (S)\Classes\FormletterService\postJournal - line 42 (S)\Classes\FormletterService\run - line 78 (S)\Classes\FormletterService\postPurchaseOrderInvoice - line 14 (S)\Classes\DictClass\callObject (S)\Classes\SysOperationServiceController\runOperation - line 93 (S)\Classes\SysOperationServiceController\runServiceOperation - line 22 (S)\Classes\DictClass\callStatic (S)\Classes\SysDictClass\invokeStaticMethod - line 26 (S)\Classes\SysDictClass\invokeStaticMethodIL - line 39 (S)\Classes\SysOperationRPCFrameworkService\runServiceOperation - line 5 (C)\Classes\SysOperationServiceController\runOperationWithRunAs - line 7 (C)\Classes\SysOperationServiceController\run - line 22 (C)\Classes\FormLetterServiceController\run - line 3 (C)\Classes\PurchFormLetter\run - line 41 (C)\Classes\PurchFormLetter\main - line 62 (C)\Classes\FormFunctionButtonControl\Clicked

All Replies
  • I hope you don't have any customization around this functionality

    it seems this is compilation error,

    Please consider full CIL compilation

    Please verify,


    Please update with your feedback.

    If this post helps you, Please verify this answer and earn Thank you Badge for yourself (Follow this link for more details https://community.dynamics.com/braggerbadges/badge/48.aspx)

    Regards, NITESH RANAJN (PMP) | Dynamics AX Consultant