Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Sales Order Invoices without financial dimension

Posted on by 80

Hello Community - We have DAX 2012 R3 CU13 was implemented without any issue but recently we discovered a big issue where the sales order invoice can be posted without financial dimension validation stop. Some financial dimensions are configured to be filled for Sales Invoice before posting, if not the system should warn the user and a pop up error appears at the end of the warn message for stopping the post: the warn appears but not the error

2021.Error.png

not the system is post in this case the invoice but without a voucher.

Can you please help where the issue could be?

Thanks;

*This post is locked for comments

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,188 Super User 2024 Season 2 on at
    RE: Sales Order Invoices without financial dimension

    Hi Odai,

    Thanks for your additional input. You mentioned that you did prepare another environment and removed the customizations. Did you then also create a new CIL build? If not, the code may run on the old version including customizations.

    If you did do the CIL build and it was completed without errors, you can check if probably some localizations might cause this behavior. In the past, I had seen an issue where the coding was wrong. Each validation should take a previous validation result into account. So, the coding should look like:

    ret = ret && this.validate....();


    In the past I had seen a validation at the end where it only did this:

    ret = this.validateMyLocalization();


    In that case the previous errors were ignored. If the validation in this last action resulted in true, the previous 'ret' value was lost.

  • RE: Sales Order Invoices without financial dimension

    Hi Andre - If you check the message in my first post you will find the error message is not appears at the end but it is appears in the second post (it is from another environment because  I just want to mention an example how it should be), anyway the below invoice is posted but without a voucher created because of the financial dimension is not filled in the sales header:

    4162.Error.png

    I am sure it is some code in a class or method but I am not sure which one.

    I checked already ledgervoucher and ledgervoucherobject classes and found no change what else please?

    Thanks indeed

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,188 Super User 2024 Season 2 on at
    RE: Sales Order Invoices without financial dimension

    Hi Odai,

    The last message shows that the posting has been cancelled. Do you have a posted invoice without the financial voucher? Can you share some more screenshots how you have made the decision that the invoice was posted without the financial impact?

  • RE: Sales Order Invoices without financial dimension

    Hi Ludwig - it could be that the invoices posted before the upgrade? I believe this is not to any parameter because the system should stop the posting if the dimension not specified as in the below message;

    7534.Error.png

    if one of the financial dimension not specified on the SO then the error message should appears yes? in my case it does not and the invoice is posted but without voucher!!

    can you please just tell me which class or table is affected because i think it is related to the code rather than setup.

    BTW: I have prepared another similar environment and when I restore a backup for the model store database only, the issue re-produced and I removed all the customization but still the issue remains!! any help will be appreciated.

    Thanks

  • Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: Sales Order Invoices without financial dimension

    Hi,

    Could similar been invoices been posted before you made the upgrade?

    Do you know if some parameter changes have been made?

    Have you double check the specific SO and checked that findims are filled in the header and the line section?

    Best regards,

    Ludwig

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,030 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans