Try ERPNext Buy Support Partners Foundation

Shopify Sales Invoice creation

I am having an issue with the Shopify integration where Shopify Log entries are being created, but always with an error:
Could not find Row #1: Stock UOM: NYXL1046

Note that the reference to NYXL1046 corresponds to the ERPNext Item Code/Shopify SKU.
In ERPNext the Item is set with a default UOM of “Each”.
There is no UOM field in Shopify Product to set a UOM that corresponds to “Each”.

It seems that the code should be using the default UOM from the Item record while creating an Order/Invoice, but it is not.

Any insight into how to resolve?

Here’s the full error

Traceback (most recent call last):
File “/home/shmadmin/frappe-bench/apps/erpnext/erpnext/erpnext_integrations/connectors/shopify_connection.py”, line 29, in sync_sales_order
create_order(order, shopify_settings)
File “/home/shmadmin/frappe-bench/apps/erpnext/erpnext/erpnext_integrations/connectors/shopify_connection.py”, line 77, in create_order
so = create_sales_order(order, shopify_settings, company)
File “/home/shmadmin/frappe-bench/apps/erpnext/erpnext/erpnext_integrations/connectors/shopify_connection.py”, line 122, in create_sales_order
so.save(ignore_permissions=True)
File “/home/shmadmin/frappe-bench/apps/frappe/frappe/model/document.py”, line 260, in save
return self._save(*args, **kwargs)
File “/home/shmadmin/frappe-bench/apps/frappe/frappe/model/document.py”, line 283, in _save
self.insert()
File “/home/shmadmin/frappe-bench/apps/frappe/frappe/model/document.py”, line 216, in insert
self._validate_links()
File “/home/shmadmin/frappe-bench/apps/frappe/frappe/model/document.py”, line 741, in _validate_links
frappe.LinkValidationError)
File “/home/shmadmin/frappe-bench/apps/frappe/frappe/init.py”, line 360, in throw
msgprint(msg, raise_exception=exc, title=title, indicator=‘red’)
File “/home/shmadmin/frappe-bench/apps/frappe/frappe/init.py”, line 346, in msgprint
_raise_exception()
File “/home/shmadmin/frappe-bench/apps/frappe/frappe/init.py”, line 315, in _raise_exception
raise raise_exception(msg)
LinkValidationError: Could not find Row #1: Stock UOM: NYXL1046

Thanks,
Mike