Woocommerce integration error in Erpnext version 14

The woocommerce connector synchronization works in version 14, creates the sales order, creates the customer, but it generates the following error:

frappe.exceptions.ValidationError: Row 1: Income Account None does not belong to Company xxxxxxxxxxx.

Attached screenshots and log.

I hope someone can guide me to fix it. :pray: :sunglasses:

Status
Error
Method
sync_woocommerce_orders
Message
Traceback (most recent call last):
File “apps/woocommerceconnector/woocommerceconnector/sync_orders.py”, line 30, in sync_woocommerce_orders
create_order(woocommerce_order, woocommerce_settings)
File “apps/woocommerceconnector/woocommerceconnector/sync_orders.py”, line 167, in create_order
create_sales_invoice(woocommerce_order, woocommerce_settings, so)
File “apps/woocommerceconnector/woocommerceconnector/sync_orders.py”, line 288, in create_sales_invoice
si.submit()
File “apps/frappe/frappe/model/document.py”, line 999, in submit
return self._submit()
File “apps/frappe/frappe/model/document.py”, line 978, in _submit
return self.save()
File “apps/frappe/frappe/model/document.py”, line 303, in save
return self._save(*args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 325, in _save
return self.insert()
File “apps/frappe/frappe/model/document.py”, line 257, in insert
self.run_before_save_methods()
File “apps/frappe/frappe/model/document.py”, line 1042, in run_before_save_methods
self.run_method(“validate”)
File “apps/frappe/frappe/model/document.py”, line 908, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 1260, in composer
return composed(self, method, *args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 1242, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “apps/frappe/frappe/model/document.py”, line 905, in fn
return method_object(*args, **kwargs)
File “apps/erpnext/erpnext/accounts/doctype/sales_invoice/sales_invoice.py”, line 108, in validate
self.validate_income_account()
File “apps/erpnext/erpnext/accounts/doctype/sales_invoice/sales_invoice.py”, line 202, in validate_income_account
validate_account_head(item.idx, item.income_account, self.company, “Income”)
File “apps/erpnext/erpnext/controllers/accounts_controller.py”, line 1986, in validate_account_head
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: Row 1: Income Account None does not belong to Company xxxxxxxxxx

I found the solution.

Please some moderator to close it.

I am having the same problem. What was the solution?

Thanks!

Scott =)