Create transferline through itembarcode

Hi All,

Am trying to create a transfer line through itembarcode.am getting below mentioned error.same code is working fine in other instance.Please help me how to find out issue.