Skip to main content

Notifications

Announcements

No record found.

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

PayrollCalculatePayStatementTaxes object not initialized

(0) ShareShare
ReportReport
Posted on by 1,204

Hi,

We're having "PayrollCalculatePayStatementTaxes object not initialized" error on AX2012 R2 when generating pay statement via Payroll > Periodic > Generate pay statements.

The error is specifically in PayrollCalculatePayStatementTaxes.initializeTaxEngine() method line 32:

payrollCalculatePayStatementTaxes.png

The thing is, this only happens in Production environment. The error randomly disappears after restarting the AOS few times but it keeps resurfacing every month.

We tried to restore Production database to a staging environment but unable to replicate the error.

Everything leading to this error seems like standard code so we have no idea what to do.

Is this a known issue? Or is there any setup we need to check?

Thank you.

  • Suggested answer
    C. Shenk Profile Picture
    C. Shenk on at
    RE: PayrollCalculatePayStatementTaxes object not initialized

    Hello Hairul, 

    Good afternoon and thank you for the question! Most likely the Microsoft engineer recommended upgrading to R3 and installing the latest tax updates as these most likely contain many fixes released in the time since R2 was supported. The tax engine that they are referring to is a yearly package update which contains the payroll tax updates needed by the product. For more information, see here (you will need to log in with your customer account): 

    https://mbs.microsoft.com/customersource/northamerica/AX/downloads/tax-regulatory-updates/MicrosoftDynamicsAX2012USPayrollTaxUpdates

    In any case, this does look like it will likely require some assistance from the Microsoft support side - I would defer to the support engineer you are working with for further assistance. 

  • HAIRUL HAZRI Profile Picture
    HAIRUL HAZRI 1,204 on at
    RE: PayrollCalculatePayStatementTaxes object not initialized

    Hi Ludwig,

    Microsoft did mention that they no longer support AX2012 R2. Their recommendation is of course upgrade to R3 or D365FO.

    But they also mentioned about the possibility of taking the R3 tax engine and packaging it up to work on R2. We'll need to create a custom package for this.

    We have no idea what they're talking about. Currently we are still waiting for more details, but do you by chance know something about this?

    Thank you.

  • Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: PayrollCalculatePayStatementTaxes object not initialized

    Good Morning Hairul,

    Have you already opened a support case with MS?

    As you are on AX2012 R2, have you considered making an upgrade to R3 or D365FO?

    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

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