Item Import Log Import Failed

Import Log

Import Failed

Error for row (#21) : local variable ‘vals’ referenced before assignment

Error for row (#22) : local variable ‘vals’ referenced before assignment

Error for row (#23) : local variable ‘vals’ referenced before assignment

Error for row (#24) : local variable ‘vals’ referenced before assignment

Error for row (#25) : local variable ‘vals’ referenced before assignment

Error for row (#26) : local variable ‘vals’ referenced before assignment

Error for row (#27) : local variable ‘vals’ referenced before assignment

Error for row (#28) : local variable ‘vals’ referenced before assignment

Error for row (#29) : local variable ‘vals’ referenced before assignment

Error for row (#30) : local variable ‘vals’ referenced before assignment

Check the entire log and correct all errors in Red color. Then try to upload again.

But i don’t know the error!! What is that variable??

can you share your upload file

http://mycilek.com/files/Items.csv

i try import your items.csv, in ERPNext 7.0.42, Frappe 7.0.30
i do this:
a. delete cost center – mandatory status “no”
b. delete account – mandatory status “no”
c. delete warehouse – mandatory status “no”
d. delete duplicate item code

i run import and success. its work… no error

2 Likes

i`v removed barcode and tried it works but the barcode is the most important column that i have to upload !!

any idea ??

of course i agree. barcode is most important beside item code. it’s unique !
in your case and your problems, you have different item code but have same barcode.

i think it’s wrong.

i`v removed the barcode column and its the same problem ??

Import Log

Import Failed

Error for row (#21) : local variable ‘vals’ referenced before assignment

Please correct and import again.

Are you using latest version?