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

Notifications

Announcements

No record found.

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)
  • Community Member Profile Picture
    on at

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

  • syed baber Profile Picture
    11,633 on at

    Hi Siva,

    Have you tried to do full CIL in your environment?

    Thanks,

    Baber.

  • Community Member Profile Picture
    on at

    Hi Zarif,

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

  • Verified answer
    dasdasd Profile Picture
    841 on at

    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.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans