Skip to main content



No record found.

Dynamics 365 Community / Forums / Human Resources forum / Tax Engine Error when ...
Human Resources forum
Suggested answer

Tax Engine Error when generating Pay statement

Posted on by 7


I am trying to generate pay statement after releasing the earning statement lines, however I am facing the following error.

"A tax engine exception has occurred processing taxes for worker FEDC00045.System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: No enum value in 'PayrollUSState' matching '' is found at Microsoft.Dynamics.Ax.Xpp.PredefinedFunctions.Str2Enum(Object e, String s) in D:\dbs\sh\l23t\0326_210407\cmd\1a\Source\Kernel\xppil\XppSupport\Support.cs:line 5237 at Dynamics.AX.Application.PayrollCalculatePayStatementTaxes.`setUnemployment() at Dynamics.AX.Application.PayrollCalculatePayStatementTaxes.setUnemployment() at Dynamics.AX.Application.PayrollPayStatementGenerationTask.calcTaxes(Decimal _createdTaxableEarningsTotal) at Dynamics.AX.Application.PayrollPayStatementGenerationTask.`calcBenefitsAndTaxes(Decimal _createdTaxableEarningsTotal) at Dynamics.AX.Application.PayrollPayStatementGenerationTask.calcBenefitsAndTaxes(Decimal _createdTaxableEarningsTotal) at Dynamics.AX.Application.PayrollPayStatementGenerationTask.createPayStatement() at Dynamics.AX.Application.PayrollPayStatementGenerationTask.`run() --- End of inner exception stack trace ---"

I have already updated the Tax Data and my tax engine is on the latest version. I have configured all the settings and parameters but this error won't go away.

  • Suggested answer
    Arunraj Rajasekar Profile Picture
    Arunraj Rajasekar 1,729 on at
    RE: Tax Engine Error when generating Pay statement


    This is common error due to missing setup. Have you identified which employee is causing the error? Once you have identified the employee, Go to worker tax code form in worker profile. Look for unemployment Tax code, unemployment tax code must contain a SUTASTATE value

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .


André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

nmaenpaa Profile Picture

nmaenpaa 101,148


Featured topics

Product updates

Dynamics 365 release plans