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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Suggested Answer

Cannot delete worker due to pending work, but work is cancelled

(0) ShareShare
ReportReport
Posted on by 16
We are trying to delete a login so that multiple logins don't exist under a worker profile creating a shared worker. The error is that there is pending work for the user so we cannot delete. 
 
In all work the only works transactions locked by this user are cancelled. Typically cancelling work on locked to a user should error out so I'm not sure how this scenario even occurred. The option to change user is grayed out. Work sessions have been cleared already. Tried the force cancel work but will not update since work is already cancelled. 
 
Any ideas what method exists to update this record and clear the locked user? Or is there some other assigned work that I'm potentially missing preventing deleting this login?
 
I have the same question (0)
  • Suggested answer
    HardikPatel523 Profile Picture
    140 on at
    Hi,
    I quickly checked the error in the system to understand the conditions under which it is triggered.
    Before explaining the conditions, for reference, there are two main tables involved: Work header and Work lines. I assume the names are self-explanatory, so I won’t go into much detail about them.
    The system throws this error under the following conditions:
    1. If at least one Work header record exists where the Locked user is the user being deleted, and the Work status is neither Cancelled nor Closed.
    2. The same validation applies to Work lines.
    If either of the above conditions is true, the system will throw the error you mentioned.
    So, it is likely that such records exist for that user. It is also possible that the data is inconsistent—for example, a work line might exist without a corresponding work header—but that is just an assumption.
    For a developer, it should be fairly easy to identify such records using the table browser.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Mallesh Deshapaga Profile Picture

Mallesh Deshapaga 1,093

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 193 Super User 2026 Season 1

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 159 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans