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

Unable to import chart of Accounts with Account Numbers #32815

Closed
maveezmh opened this issue Nov 2, 2022 · 2 comments
Closed

Unable to import chart of Accounts with Account Numbers #32815

maveezmh opened this issue Nov 2, 2022 · 2 comments
Labels

Comments

@maveezmh
Copy link

maveezmh commented Nov 2, 2022

Information about bug

Unable to import chart of account with account numbers in ERPNext using chart of accounts importer tool.
can anyone help me out in this please’?

image

it shows following error

image

Module

accounts

Version

Frappe Chat: v0.0.1 (HEAD)
ERPNext: v13.40.3 (HEAD)
Frappe Framework: v13.42.0 (HEAD)

ERPNext: v14.4.0 (HEAD)
Frappe Framework: v14.13.0 (HEAD)
Frappe HR: v1.0.0 (HEAD)
Payments: v0.0.1 (HEAD)

Installation method

Frappe Server

Relevant log output / Stack trace / Full Error Message.

XHRPOSThttps://craft-trading.frappe.cloud/api/method/erpnext.accounts.doctype.chart_of_accounts_importer.chart_of_accounts_importer.get_coa
[HTTP/2 417 Expectation Failed 145ms]

Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 69, in application
    response = frappe.api.handle()
  File "apps/frappe/frappe/api.py", line 54, in handle
    return frappe.handler.handle()
  File "apps/frappe/frappe/handler.py", line 45, in handle
    data = execute_cmd(cmd)
  File "apps/frappe/frappe/handler.py", line 83, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "apps/frappe/frappe/__init__.py", line 1585, in call
    return fn(*args, **newargs)
  File "apps/erpnext/erpnext/accounts/doctype/chart_of_accounts_importer/chart_of_accounts_importer.py", line 164, in get_coa
    forest = build_forest(data)
  File "apps/erpnext/erpnext/accounts/doctype/chart_of_accounts_importer/chart_of_accounts_importer.py", line 256, in build_forest
    path = return_parent(data, account_name)[::-1]
  File "apps/erpnext/erpnext/accounts/doctype/chart_of_accounts_importer/chart_of_accounts_importer.py", line 215, in return_parent
    frappe.throw(
  File "apps/frappe/frappe/__init__.py", line 522, in throw
    msgprint(
  File "apps/frappe/frappe/__init__.py", line 490, in msgprint
    _raise_exception()
  File "apps/frappe/frappe/__init__.py", line 442, in _raise_exception
    raise raise_exception(msg)
frappe.exceptions.ValidationError: The parent account <strong>Application of Funds (Assets)</strong> does not exists in the uploaded template
request.js:462:14
@maveezmh maveezmh added the bug label Nov 2, 2022
@pra17shant
Copy link

You Can Build Your Template Like Wise and Try to Again
Template

After Upload Template Image look like

Screenshot from 2022-11-04 11-19-27

@maveezmh maveezmh closed this as completed Nov 5, 2022
@maveezmh
Copy link
Author

maveezmh commented Nov 5, 2022

@pra17shant Thank you Prashant. it works

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2024
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

2 participants