Setup Wizard Errors

Setup wizard has been ended with the following and DOES NOT respond to “Report this issue” button.
v7.1.1 ERPNext
v7.1.2 Frappe
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 55, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 19, in handle
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 36, in execute_cmd
**ret =, frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 890, in call
**return fn(*args, newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/page/setup_wizard/”, line 36, in setup_complete
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/”, line 27, in setup_complete
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/”, line 250, in create_sales_tax
if len(country_wise_tax)>0:
TypeError: object of type ‘NoneType’ has no len()

It has been found that, same copy is doing fine upon choosing USA as country during the initial setup wizard which indicates that, the above reported errors were encountered upon choosing UAE i.e. Tax Free

Please advice on what to do and how to correct this issue?
I have been tried to fool the system by launching USA company to bypass the above errors and changing to UAE later, but it has been found that, all sales order items, quotation items etc. lists still showing USD currency even after redefining company to UAE and AED as currency.

Same Issue, when select country Afghanistan with currency Afghani

@vCentre @mayar as a fix for now, do this.

Go to


Add the tax structure for the missing countries. This will solve the above issue

Looks like we have fixed this. Can you please update to the latest version and retry. ( run bench update)

1 Like

Yessss, it’s solved now by update