Announcements
I'm having problems with re-scheduling production orders in a bath job. Currently we do re-schedule all production orders in status Scheduled again in a batch job, which is working fine. Now we want to be able to schedule a group of production orders in another scheduling direction (Backward from delivery date instead of Forward from tomorrow).
To make this happen, I'm trying to reset the status of all production orders with current status Scheduled (to Estimated), to make sure they are out of the scheduling. After this I will re-schedule in two separate batch jobs.
When running the batch job to reset the status of the production orders, the first run works without problems. But when running the batch job for the second time, I do get an error mentioning "The status cannot be reset from Estimated to Estimated on production 3884 because of the parameter setup."
As far as I can see, the batch job is trying to reset the status of the same production order. So I thought I forgot the Late Section option, but this function is already turned on.
Anybody an idea how to solve this problem?
Hi ToddB,
Thank you for you assistance. I do already filter specifically on the status Scheduled... I will open a support incident.
Hi Nick,
This could be an issue with the filter on the batch job; and you may need to add a filter to weed out orders with an estimated status or something similar.
If you are still needing assistance, and/or believe this is a bug, please open a support incident with Microsoft.
Hi George, many thanks for your input. it seems to be a bug in D365... I need to think about a workaround.
I was able to reproduce your issue in my environment, using a simple selection filter ProductionOrder.Status = Scheduled (with an additional filter on the range of production order numbers, because I did not want to reset too many orders). Same error - the system tried to reset the status of the same production order again.
It might be a bug. I noticed two things:
On some batch task forms (e.g. Purchase order confirmation), when you activate Late selction, the form updates and displays the filter criteria instead of the list of selected records. The Reset status form keeps showing the list of selected records. A sign that Late selection is not applied?
When I opened the select filter, there was already a line with ProductionOrder.Status = (ProdStatusSysQueryRangeUtil::prodStatusBetweenCostEstimatedAndReportedFinished()). I was able to change it to "Scheduled" but maybe it still affects the query?
André Arnaud de Cal...
293,311
Super User 2025 Season 1
Martin Dráb
232,183
Most Valuable Professional
nmaenpaa
101,158
Moderator