I get this message when trying to import CoA
TypeError: ‘str’ object is not callable
"erpnext": "12.6.0",
"erpnext_support": "0.0.3",
"frappe": "12.4.1",
"journeys": "0.0.1"
}
Route
Form/Chart of Accounts Importer
Error Report
Traceback (most recent call last):
File “/home/frappe/benches/bench-version-12-2020-03-19/apps/frappe/frappe/app.py”, line 62, in application
response = frappe.api.handle()
File “/home/frappe/benches/bench-version-12-2020-03-19/apps/frappe/frappe/api.py”, line 55, in handle
return frappe.handler.handle()
File “/home/frappe/benches/bench-version-12-2020-03-19/apps/frappe/frappe/handler.py”, line 22, in handle
data = execute_cmd(cmd)
File “/home/frappe/benches/bench-version-12-2020-03-19/apps/frappe/frappe/handler.py”, line 61, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/benches/bench-version-12-2020-03-19/apps/frappe/frappe/init.py”, line 1054, in call
return fn(*args, **newargs)
File “/home/frappe/benches/bench-version-12-2020-03-19/apps/erpnext/erpnext/accounts/doctype/chart_of_accounts_importer/chart_of_accounts_importer.py”, line 63, in get_coa
forest = build_forest(generate_data_from_csv(file_name))
File “/home/frappe/benches/bench-version-12-2020-03-19/apps/erpnext/erpnext/accounts/doctype/chart_of_accounts_importer/chart_of_accounts_importer.py”, line 121, in build_forest
path = return_parent(data, account_name)[::-1]
File “/home/frappe/benches/bench-version-12-2020-03-19/apps/erpnext/erpnext/accounts/doctype/chart_of_accounts_importer/chart_of_accounts_importer.py”, line 101, in return_parent
frappe.throw(_(“The parent account {0} does not exists”)
TypeError: ‘str’ object is not callable
Request Data
{
“type”: “POST”,
“args”: {
“file_name”: “/files/coa.csv”,
“parent”: “All Accounts”,
“doctype”: “Chart of Accounts Importer”,
“is_root”: true
},
“headers”: {},
“error_handlers”: {},
“url”: “/api/method/erpnext.accounts.doctype.chart_of_accounts_importer.chart_of_accounts_importer.get_coa”
}
Response JSON
{}