Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

AccountingDistributionRule object not initialized when I try to Post a packing slip

(0) ShareShare
ReportReport
Posted on by 157

Hello to everyone.

From path Accounts payable / Purchase orders / all purchase orders 

I select a specific purchase order and when I try to post it from Tab Receive  / button  Product receipt  

I have the error you see below.

Until now,

  • I have restarted the AOS

  • I have made a full CIL

But nothing changed. Also I have try another way from a latest post about a similar issue : 
https://community.dynamics.com/ax/f/microsoft-dynamics-ax-forum/116364/error-when-invoicing-po-applying-pre-payment-accountingdistributionrule-object-not-initialized/245750#245750

b
ut the VendInvoiceInfoLine Table does not have any record with the PurchLine.RecId...

Does anyone know what else can I do without install hotfixes?

 

7870.Error.PNG

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: AccountingDistributionRule object not initialized when I try to Post a packing slip

    Hi,

    Can you check this hotfix on LCS and whether it applies to your system?

    Issue 3689404, Stack trace error on AccountingDistributionRule

    There are also some other related hotfixes available there.

    I would recommend that you check them first.

    Best regards,

    Ludwig

  • SGbron Profile Picture
    SGbron 157 on at
    RE: AccountingDistributionRule object not initialized when I try to Post a packing slip

    Hello Will.

    Thank you for the reply.

    Unless this relation you wrote, VendInvoiceInfoLine.PurchLineId  also have relation with PurchLine.RecId.

    Anyway, I had also search this line by any possible way I can, VendInvoiceInfoLine.PurchLineId, VendInvoiceInfoLine.ItemId and VendInvoiceInfoLine.InventTransId.

    The record is not there.

    I debug it and I found that in AccountingDistributionRule class , is calling a method :

    accountingDistributionRule.parmSourceDocumentLineItem(_sourceDocumentLineItem);

    but second time it calls it is null. And that is the reason that drops an exception.

    This happens because the objectslist that has these objects is it runs sometimes and after that returns empty.

    But I cannot understand , WHY????  

  • WillWU Profile Picture
    WillWU 22,352 on at
    RE: AccountingDistributionRule object not initialized when I try to Post a packing slip

    Hi SGbron,

    The InventTransId of the VendInvoiceInfoLine table matches the InventTransId of the PurchLine table, not recid.

    Please try it again.

    Hope this helps.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans