Erpnext: Data Import Tool would Fail if we Use LibreOffice XLSX format

Created on 16 Feb 2018  路  2Comments  路  Source: frappe/erpnext

Hi,

This is with reference to WN-SUP30878, wherein DATA IMPORT fails with below error:

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

This issue can be reproduced by following the below steps:

  1. Use a computer which has LIBREOFFICE Version: 5.1.6.2 (tested with this version), but I guess it should be an issue with open office as well.
  2. Now goto data import tool
  3. Download the XLSX template file for the desired doctype.
  4. Populate it with data you want to import and upload the sheet.

Kindly note that if you download the Template with MS Office and do the steps then there is no issue.
I am enclosing a XLSX file which is giving this error, please note that this xlsx file is made with Libreoffice.

Journal_Entry.xlsx

framework

Most helpful comment

@rohitwaghchaure This issue was moved from a support ticket to github issues but I guess it has not got any attention, I know it might not be a priority for the team for this issue but I guess since erpnext is open source it should support open source softwares and it has been 2 months I closed this support ticket.

All 2 comments

@rohitwaghchaure This issue was moved from a support ticket to github issues but I guess it has not got any attention, I know it might not be a priority for the team for this issue but I guess since erpnext is open source it should support open source softwares and it has been 2 months I closed this support ticket.

I've been using LibreOffice Calc and the xlsx format was working fine. What I did learn was to include the "accounts" column: https://github.com/frappe/frappe/issues/4282#issuecomment-440045449
Maybe that will help your situation?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alimalkhalifa picture alimalkhalifa  路  3Comments

heyakyra picture heyakyra  路  4Comments

setsero71 picture setsero71  路  3Comments

nabinhait picture nabinhait  路  3Comments

jboilesen picture jboilesen  路  3Comments