How to create a new BOM if ‘Invalid Item Reference!’ error occurs on save?

Cause: System shows the error ‘Invalid Item Reference! The item reference entered is invalid for the selected BOM code.Please enter a valid item reference.’ when the item ref in the item details is duplicate.
Remedies: After Entering Item code of the input material used to manufacture the finished product. If the same item is required in the same bill of material in multiple instances, enter different item references to differentiate and allow the same item to re-appear. Enter value such as operation or item code + A, B,.