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 :
Finance | Project Operations, Human Resources, ...
Suggested answer

PayrollCalculatePayStatementTaxes object not initialized

(0) ShareShare
ReportReport
Posted on by 1,214

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.

I have the same question (0)
  • Suggested answer
    C. Shenk Profile Picture
    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
    1,214 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
    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

Responsible AI policies

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

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 665 User Group Leader

#2
Martin Dráb Profile Picture

Martin Dráb 595 Most Valuable Professional

#3
Yng Lih Profile Picture

Yng Lih 558

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans