Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync Item Master and Variant from shopify to erpnext error #53

Closed
chafor opened this issue Feb 3, 2016 · 0 comments
Closed

Sync Item Master and Variant from shopify to erpnext error #53

chafor opened this issue Feb 3, 2016 · 0 comments

Comments

@chafor
Copy link

chafor commented Feb 3, 2016

erpnext_shopify.api.sync_shopify

Method: hourly, Handler: erpnext_shopify.api.sync_shopify
Traceback (innermost last):
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/tasks.py", line 110, in scheduler_task
frappe.get_attr(handler)()
File "/home/ubuntu/frappe-bench/apps/erpnext_shopify/erpnext_shopify/api.py", line 25, in sync_shopify
sync_products(shopify_settings.price_list, shopify_settings.warehouse)
File "/home/ubuntu/frappe-bench/apps/erpnext_shopify/erpnext_shopify/sync_products.py", line 19, in sync_products
sync_shopify_items(warehouse, shopify_item_list)
File "/home/ubuntu/frappe-bench/apps/erpnext_shopify/erpnext_shopify/sync_products.py", line 24, in sync_shopify_items
make_item(warehouse, shopify_item, shopify_item_list)
File "/home/ubuntu/frappe-bench/apps/erpnext_shopify/erpnext_shopify/sync_products.py", line 30, in make_item
create_item(shopify_item, warehouse, 1, attributes, shopify_item_list=shopify_item_list)
File "/home/ubuntu/frappe-bench/apps/erpnext_shopify/erpnext_shopify/sync_products.py", line 123, in create_item
if not is_item_exists(item_dict, attributes):
File "/home/ubuntu/frappe-bench/apps/erpnext_shopify/erpnext_shopify/sync_products.py", line 251, in is_item_exists
item = frappe.get_doc("Item", {"item_name": shopify_item.get("item_name")})
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py", line 530, in get_doc
return frappe.model.document.get_doc(arg1, arg2)
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 46, in get_doc
return controller(arg1, arg2)
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 75, in init
frappe.throw(("{0} {1} not found").format((arg1), arg2), frappe.DoesNotExistError)
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py", line 262, in throw
msgprint(msg, raise_exception=exc)
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py", line 255, in msgprint
_raise_exception()
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py", line 240, in _raise_exception
raise raise_exception, encode(msg)
DoesNotExistError: Item {'item_name': u'Acme Coaches Glove Whistle 246-585'} not found

The trouble appeared to be when the Item inside shopify is the master of several variant. I know erpnext support variant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants