web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Cannot rehire past worker

(0) ShareShare
ReportReport
Posted on by 5

Hello,

i`m trying to rehire past worker and i`m getting error, any clue why? Error below

Cannot create a record in Worker payroll information (HcmWorkerPayrollInfo). Worker: Xxx Xxx, 023. The record already exists.

I have the same question (0)
  • GirishS Profile Picture
    27,827 Moderator on at

    Hi,

    Error says that rehiring worker is already there in the "HcmWorkerPayrollInfor" table. This error occurs because of unique index in the  "HcmWorkerPayrollInfor" table.

    Thanks,

    Girish S.

  • martinggN Profile Picture
    5 on at

    is it possible somehow to delete it? I have no clue how its working but i see that record in that table and becasue of it i`m not able to rehire that person

  • GirishS Profile Picture
    27,827 Moderator on at

    Hi martinggN,

    I don't know how the values are inserted into the "hcmworkerpayrollinfo" table. There is not much information available about this table.

    You can directly delete the record using table browser link.

    environment.cloudax.dynamics.com/

    If its in production or uat server you need to write a script to delete the record in the table.

    Thanks,

    Girish S.

  • martinggN Profile Picture
    5 on at

    Yes, its production, delete button via table browser is grayed 

  • GirishS Profile Picture
    27,827 Moderator on at

    You need to create a custom script with logic of deleting a record in the "hcmworkerpayrollinfo" table.

    Thanks,

    Girish S.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 76

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans