Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error for row (#21) : init() keywords must be strings #4282

Closed
tundebabzy opened this issue Oct 9, 2017 · 11 comments
Closed

Error for row (#21) : init() keywords must be strings #4282

tundebabzy opened this issue Oct 9, 2017 · 11 comments
Labels

Comments

@tundebabzy
Copy link
Contributor

reported from https://discuss.erpnext.com/t/error-for-row-21-init-keywords-must-be-strings/29104

screenshot 2017-10-07 at 11 30 46

@olamide2
Copy link

Hi..any update on this?

@szufisher
Copy link
Contributor

szufisher commented Oct 18, 2017

I am having the same error message when uploading sales order with only required columns moment ago,
per the web browser console error log, one of the field as key is passed to the Python init() method is none which caused the failure, to be more specific, for uploading records from child table, at least two columns should be kept, on row 14 one field specify the child table doc type, and the other define the field name(child table) in the master table, for my sales order case, I removed the original column N, which caused the items field (key) missing.
column M column N
row 14 Sales Order Item items

@szufisher
Copy link
Contributor

if the above solution is confirmed OK, would like to suggest add one more note into the import template as following
if you are uploading child table records, at least two columns which defines the child table doc type and field name in master table on row 14 should be kept

@josmeldiaz21
Copy link

Hi, I had the same problem, and I kept all columns and the error was gone. @szufisher was right.

@gloriiiiii6
Copy link

Hi, I just got the same error when trying to upload a price in my Standard Selling Price List. This is the list I am trying to upload. I can't figure out what I am doing wrong. Can anybody give me a hint?
image

@umairsy umairsy added the bug label Nov 22, 2017
@csxilin
Copy link

csxilin commented Apr 21, 2018

I am getting the same issue. I am currently using: erpnext 10.1.23 and frappe 10.1.23.

It seems to me that the item_code with type Link is causing the issue.

@ahmad18189
Copy link

Same Error aftre truing to uploud JV s into the system

@ahmad18189
Copy link

Traceback (most recent call last):
File "/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/data_import/importer.py", line 385, in upload
doc = frappe.get_doc(doc)
File "/home/frappe/frappe-bench/apps/frappe/frappe/init.py", line 638, in get_doc
return frappe.model.document.get_doc(*args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 68, in get_doc
return controller(*args, **kwargs)
TypeError: init() keywords must be strings

@garyritchie
Copy link

I had trouble with this too, and new Journal Entries. When I added an additional column "accounts" (as shown) it worked...
image

@unibravo
Copy link
Contributor

unibravo commented Apr 4, 2019

Please Watch:
How to perform a quick item import in ERPNext
https://www.youtube.com/watch?v=6_9HNptSeP8

@surajshetty3416
Copy link
Member

Seems like an old issue.

We have new Data Import now

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests