Cannot create a Stock Entry (Manufacture) for the Item <in> with the existing Serial No <sn>

I am getting an error when I submit a Stock Entry.

The Stock Entry type is “Manufacture” and this has been created from a Work Order when the Finish button is pressed. (all Jobs are finished, the Material Transfer for Manufacture Stock Entry went OK).

I have several serialized items which are being consumed in the manufacture of a single serialized item.
The error message is:
Cannot create a Stock Entry (Manufacture) for the Item ITM-### with the existing Serial No 123ABC.

The error message makes sense - I should not be able to manufacture an item with the same serial number as an existing item. But, in this case, I am trying to consume the item that is in the error message. If I remove the serial number from the table row then I get a different error telling me I need to have a serial number for this item.

Does anyone know why the system is giving me this error on a part that is being consumed?

This was a bug present in the frappe hosted instance. It’s been fixed.