Where it usually breaks
And how to keep it from happening.
- Wrong operating state. A task can point to an unsuitable field or cycle. Review the allowed states before approval and again at execution.
- Unit mismatch. The requested unit must agree with the selected lot before its quantity is consumed.
- Repeated execution. Check that a retry does not append duplicate usage or deduct the same quantity again.