Running into a frustrating issue with work order closure in AM 2022.1. Multiple orders are stuck in ‘Ready to Close’ status but won’t actually close. The error message indicates unposted labor entries are blocking the closure workflow.
The specific error from the Admin Console:
WorkOrder WO-45231: Closure blocked
Reason: Unposted labor entries detected
Locked entries: 7 records
We’ve tried posting the labor entries manually through the labor management module, but they show as ‘locked’ and won’t update. The operators completed their work days ago, and the time entries are accurate. This is creating a growing backlog of unclosed orders affecting our production metrics.
Is there a way to unlock these labor entries or force the order closure workflow to proceed? We need to understand the proper sequence for handling this situation.
Quick tip - you can also check for orphaned batch records that might be causing this. Sometimes a batch process crashes or times out, leaving records in ‘In Progress’ state indefinitely. Run this query to identify problematic batches and their age. If you find batches older than 48 hours in ‘In Progress’ status, they likely need manual intervention or cleanup by your admin team.
There’s also a workflow configuration aspect here. In AM 2022.1, the order closure workflow has a validation step that checks for unposted labor. You can modify the workflow template to either skip this validation or make it a warning instead of a blocker. However, I’d recommend fixing the root cause (the payroll batch) rather than changing the workflow, since that validation exists for good reason - to ensure accurate labor costing before order closure.
I’ve dealt with this before. The labor entry locking mechanism is actually a safeguard to prevent data inconsistency. When entries are locked, it usually means there’s a pending approval or a batch process that hasn’t completed. Don’t try to force unlock them through database manipulation - that can cause serious data integrity issues. Use the Admin Console’s labor entry management screen to check the lock reason and who initiated it.