web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

AccountingDistributionRule object not initialized error

(0) ShareShare
ReportReport
Posted on by

Hi Friends,

When I do prepayment vendor invoice it throws two different errors:

Accounting Distribution rule object not initialized - stack trace error . [When CIL checkbox for  the user is not checked ]

Exception has been thrown by the target of an invocation [when CIL checkbox is checked it throws].

Can anybody help me on this.

VendorInvoice.PNG

*This post is locked for comments

I have the same question (0)
  • Verified answer
    dasdasd Profile Picture
    841 on at
    RE: AccountingDistributionRule object not initialized error

    I have fix this problem. This problem occurs due to Pre-Payment process. All you need to do is to Delete the Prepayment Line from VendInvoiceInfoLine Table, after that apply the prepayment once again. It will resolve the problem.

  • Community Member Profile Picture
    on at
    RE: AccountingDistributionRule object not initialized error

    Hi Zarif,

     It throws error for  SourceDocumentLineItem: ChargeSourcedocLineItem and _monetoryAmount: Charge.

  • syed baber Profile Picture
    11,633 on at
    RE: AccountingDistributionRule object not initialized error

    Hi Siva,

    Have you tried to do full CIL in your environment?

    Thanks,

    Baber.

  • Community Member Profile Picture
    on at
    RE: AccountingDistributionRule object not initialized error

    Have you tried to debug the code in "AccountingDistributionRule" -> "newRule" class method. You will probably find an answer which object is not getting initialized.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#1
Guy Terry Profile Picture

Guy Terry 2 Moderator

#1
Rahul Shah Profile Picture

Rahul Shah 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans