Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hello,
Having challenges using the orderEditSetQuantity mutation. Am receiving the error:
Mutation had errors: "Variable $lineItemId of type ID! was provided invalid value"
Have tried a number of permutations of different order states and with and without passing restock and location variables but always seem to get this error. Guessing doing something incorrectly in working with the calculatedorder object but not sure what that might be.
Following screenshots show the Flow I am using and the errors. Help is greatly appreciated!
Solved! Go to the solution
This is an accepted solution.
That error is about your lineItemId not the quantity. It looks like you have a space in the quotes before the GID. Use hyphens in liquid to remove whitespace like {%- var -%}
This is an accepted solution.
That error is about your lineItemId not the quantity. It looks like you have a space in the quotes before the GID. Use hyphens in liquid to remove whitespace like {%- var -%}
Thanks very much Paul! much appreciated, working great now.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025