Tally Migration Error

Hi fellows,

When trying to process the masters xml from tally it shows this error in v13-pre-release
Any help is appreciated

“Processing Master Data”

Exception:
Traceback (most recent call last):
File “/opt/bench/erpnext/apps/erpnext/erpnext/erpnext_integrations/doctype/tally_migration/tally_migration.py”, line 249, in _process_master_data
collection = self.get_collection(self.master_data)
File “/opt/bench/erpnext/apps/erpnext/erpnext/erpnext_integrations/doctype/tally_migration/tally_migration.py”, line 72, in get_collection
master = bs(sanitize(emptify(content)), “xml”)
UnboundLocalError: local variable ‘content’ referenced before assignment

Is this resolved, same error on V12

Facing the same issue.

"Processing Master Data"
---------------------------------------------------------------------------------------------------

Exception:
Traceback (most recent call last):
  File "/home/demo9t9it/frappe-bench/apps/erpnext/erpnext/erpnext_integrations/doctype/tally_migration/tally_migration.py", line 249, in _process_master_data
    collection = self.get_collection(self.master_data)
  File "/home/demo9t9it/frappe-bench/apps/erpnext/erpnext/erpnext_integrations/doctype/tally_migration/tally_migration.py", line 72, in get_collection
    master = bs(sanitize(emptify(content)), "xml")
UnboundLocalError: local variable 'content' referenced before assignment

My instance
ERPNext: v12.23.0 (version-12)
Frappe Framework: v12.20.0 (version-12)

Apparently i tried to setup the ERPNext V12 on other machine, i was able to import the same data weird.

Thanks. When I use xml.zip I get this error

"Processing Master Data"
----------------------------------------------------------------------------------------------------

Exception:
Traceback (most recent call last):
  File "/home/demo9t9it/frappe-bench/apps/erpnext/erpnext/erpnext_integrations/doctype/tally_migration/tally_migration.py", line 250, in _process_master_data
    company = get_company_name(collection)
  File "/home/demo9t9it/frappe-bench/apps/erpnext/erpnext/erpnext_integrations/doctype/tally_migration/tally_migration.py", line 98, in get_company_name
    return collection.find_all("REMOTECMPINFO.LIST")[0].REMOTECMPNAME.string.strip()
IndexError: list index out of range

First error was when I directly uploaded xml file without zip.

@Chetan_Zi
At these lines at the end of the Master.xml file before upload.

          <COMPANY>
            <REMOTECMPINFO.LIST MERGE="Yes">
              <NAME></NAME>
              <REMOTECMPNAME>INSERT YOU COMPANY NAME HERE</REMOTECMPNAME>
              <REMOTECMPSTATE></REMOTECMPSTATE>
            </REMOTECMPINFO.LIST>
          </COMPANY>
        </TALLYMESSAGE>
      </REQUESTDATA>
    </IMPORTDATA>
  </BODY>
</ENVELOPE>
1 Like

hi there ,

I did but still not work and give same Error , Pls. advise if you have get any new news

name as in tally company name wants in erpnext

Hey, there did you find any solution ??