Scan bar code doesn't work in New Stock Entry

Hello!
When I try to type Bar Code in New Stock Entry, every time I have the error

Cannot find Item with this Barcode

How to fix it?
Also I can use some devices, like camera or scaner.