Skip to main content

Notifications

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

Payroll script to look for orphaned records

Posted on by 75,730

Does anyone have any SQL scripts that look for missing records in the payroll transaction tables as well as the payroll summary tables? I have a situation where the quarter end reports for 2020 Q1 do not agree with the period end report for the same period.

Categories:
  • Suggested answer
    Terry R Heley Profile Picture
    Terry R Heley Microsoft Employee on at
    RE: Payroll script to look for orphaned records

    Hi Richard, we are not a date effective system.  There is no way to see this unless they had table tracking of changes from the detailed activity tracking tool which is free to download, but they probably don't have.  You could always take an OLDER back up and restore to test company and see how it looks at that time.  Thanks

    Terry Heley

    Microsoft

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: Payroll script to look for orphaned records

    I am pleading to get that case open. Can you help with this clue? I have found 13 employees who had a deduction that was incorrectly not checked as being tax sheltered. The client claims they were set correctly at one time. Is there anyway I can determine when this incorrect change was made? Can I use the UPR30100 or UPR30300 tables or some other tables?

  • Nicole Hellerud Profile Picture
    Nicole Hellerud 1,712 on at
    RE: Payroll script to look for orphaned records

    Hi Richard,

    Thank you for your update.

    I would recommend creating a support case so we can look further into the specifics of this issue.

    Please let me know if you have questions/concerns.

    Wishing you and yours healthy and happy days ahead.

    Nicole Fiskum

    Support Engineer

    Microsoft Dynamics GP

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: Payroll script to look for orphaned records

    Any updates on this? If not, I will open a support case with Microsoft.

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: Payroll script to look for orphaned records

    Nicole, I am a bit confused by this KB. How do I use these notes to find the transactions that are incorrect? Is there a script to run?

    FICA/SS Tax W/H' of $0.00 <> calculated of $133.54

    FICA/SS Tax W/H' of $0.00 <> calculated of $31.23

    Is this saying create a script and compute what the value should be and compare it to what is on the record?

    Also, on the

    quarter-end report for Q1 2020 the total wages, tips and other compensation is $1,181,331.86

    on the period-end report for Jan - Mar 2020 the federal wages is listed as $1,182,917.76

    How do I find what is causing this difference of $1,5189.90?

    This client has written only one manual check all year which they voided immediately.

  • Nicole Hellerud Profile Picture
    Nicole Hellerud 1,712 on at
    RE: Payroll script to look for orphaned records

    Hello Richard,

    Thank you for your update.

    Is the numerical error you are referring to FICA/SS Tax W/H' of $[SS Tax W/H] <> calculated of $[recalculated SS Tax W/H] and FICA/MC Tax W/H' of $[MC Tax W/H] <> calculated of $[recalculated MC Tax W/H]?

    If so, please see:

    FICA/SS Tax W/H' of $[SS Tax W/H] <> calculated of $[recalculated SS Tax W/H]

    Note Replace the placeholder [SS Tax W/H] with the social security tax withholding, and replace the placeholder [recalculated SS Tax W/H] with the calculated social security tax withholding.

    This is a validation error message that prompts you to verify the accuracy for any employee who has a FICA/SS tax withheld amount that is more than the employee FICA/SS wages multiplied by the FICA/SS rate.

    FICA/MC Tax W/H' of $[MC Tax W/H] <> calculated of $[recalculated MC Tax W/H]

    Note Replace the placeholder [MC Tax W/H] with the FICA/Medicare tax withheld, and replace the placeholder [recalculated MC Tax W/H] with the calculated FICA/Medicare tax withholding amount.

    This is a validation error message that prompts you to verify the accuracy for any employee who has a FICA/Medicare tax withheld amount that is more than the employee FICA/Medicare Wages multiplied by the FICA/Medicare rate.

    These were found in Description of the errors or warnings that may appear on the Payroll Validation report in Payroll in Microsoft Dynamics GP

    I hope this helps. Please let me know if it does not or if you have any other questions/concerns.

    Wishing you and yours healthy and happy days ahead!

    Nicole Fiskum
    Support Engineer
    Microsoft Dynamics GP

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: Payroll script to look for orphaned records

    Nicole, the W2-Validation report yields these errors. What should I do about the numerical errors?

    W2_2D00_Validation.png

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: Payroll script to look for orphaned records

    Terry shared this note with me this morning. I am now beginning the arduous task of finding what is causing the differences. I will keep you posted on my progress.

  • Suggested answer
    Nicole Hellerud Profile Picture
    Nicole Hellerud 1,712 on at
    RE: Payroll script to look for orphaned records

    Hi Richard,

    Thank you for your post. 

    I believe that Terry's blog My 941 does not match my payroll summary, tell me WHY? may be of help here. Could you check it out and let us know if you still have questions/concerns? 

    I look forward to your feedback when available. 

    Wishing you and yours healthy and happy days ahead.

    Nicole Fiskum
    Support Engineer
    Microsoft Dynamics GP

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!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans