Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hi,
I set up a flow to add a line item to an order if two conditions are met. I've had several occurrences so far where both conditions were met but the line item couldn't be added to the order, and flow doesn't show me why the error occurred.
The logic is as follows:
Here's an example of when the flow failed:
My only two thoughts is that maybe the order is being archived before the line item is added? Or possibly that because the free product is tied to the app Sky Pilot?
Let me know what you think
Thanks in advance,
Scott
Are there any successful runs or all of them fail?
Add logging:
https://shopify.dev/docs/api/admin-graphql/2024-07/objects/Order#field-merchantEditable
I should've said, all of them failed.
I also added the log output action after add line item. I'll wait to see what its output says next time it runs (I don't really know how to debug shopify flow within the shopify browser - I'm somewhat versed in coding in languages like C and Java, but not in webdev stuff).
You should log before possible error -- Flow will stop processing if it encounters error.
Or put it in both places 🙂
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025