Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
I'm using this flow template but am getting this error when running:
I crossed out the location but it does return a correct name. I didn't change anything in the template.
Can someone tell me why/how to fix the error?
Thanks in advance!
Solved! Go to the solution
This is an accepted solution.
In that code, it's finding a location by it's name ('Enter a unique part of the location name here'). You need to substitute the name of your location there.
Your post is missing the most important part of all - the console.log output. Based on the available information, `location_inventory` is probably undefined, which means no item in the array met your criteria.
It's a good idea to check for null/undefined when working with data in JavaScript.
This is an accepted solution.
In that code, it's finding a location by it's name ('Enter a unique part of the location name here'). You need to substitute the name of your location there.
Thank you! That worked. Silly me didn't realize I was suppose to edit that. 😅
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