question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Data Import does not support recursive tree doctypes like Item Group

See original GitHub issue

Description of the issue

The ERPNext Chart of Accounts Importer supports the recursive tree structure The main Data import tool does not

Context information (for bug reports)

Output of bench version

Frappe Framework: v13.x.x-develop () (develop)

Steps to reproduce the issue

  1. Create a tree in ERPNext Item Group
  2. Export it (using the Data Import tool)
  3. Delete the tree
  4. Import the same file

Observed result

Errors about the Parent Item Group not existing when it’s already in the file

Expected result

Import success

Stacktrace / full error message

Import File Errors and Warnings
COLUMN 3 (Parent Item Group)
The following values do not exist for Item Group: Surfaces, Accessories

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
ankushcommented, Mar 3, 2021

Sounds like this could be due to order of operations/insertion, so we might need to first build the tree in memory and then insert it. Good catch 👍

0reactions
federicocalvocommented, Dec 10, 2021

hi, If there is a PR with the solution but some documentation issues are missing, shouldn’t it be helped to pass this point?

It leaves the importer out of place in any erpnext categorization.

Read more comments on GitHub >

github_iconTop Results From Across the Web

erpnext/bom.py at develop · frappe/erpnext - GitHub
from erpnext.stock.doctype.item.item import get_item_details ... Same item can appear recursively once as long as it doesn't have BOM.
Read more >
Generating a recursive sitemap with relative href links
The way I am currently setting the value for href obviously does not work. <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> ...
Read more >
Database Engine events and errors - SQL Server
Consult this MSSQL error code list to find explanations for error messages for SQL Server database engine events.
Read more >
Beautiful Soup Documentation — Beautiful Soup 4.4.0 ...
Beautiful Soup is a Python library for pulling data out of HTML and XML files. It works with your favorite parser to provide...
Read more >
XSL Transformations (XSLT) Version 3.0 - W3C
XSLT 3.0 does not require implementations to support XPath 3.1 in its ... package is assembled by recursively expanding the xsl:import and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found