Error in creating new inventory item

I think this is a bug.

There has been an improvement (Allow Cheque clearing function even after lock date - #3 by lubos) to allow the updating of any transaction as long as the transaction is not materially impacting general or subsidiary ledgers. This has definitely caused that. Accounts with zero starting amounts should be allowed by the lock date.

Remove the lock date and go ahead and create your inventory item. It will be fixed.