Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.
Solved

[BUG] Order Edits with added lines failing

Brian_S
Shopify Partner
152 19 39

This seems to have just started a few hours ago with no change in our requests from what I can tell. Requests to add lines to orders are failing after a long request to commit the change. 

 

To replicate: 

 

begin order edit

mutation beginEdit ($id: ID!) {
  orderEditBegin(id: $id) {
    calculatedOrder {
      id
    }
  }
}

that works and recorded the CalculatedOrder gid

 

add variant: 

mutation addVariantToOrder($id: ID!, $quantity: Int!, $variantId: ID!) {
  orderEditAddVariant(id: $id, variantId: $variantId, quantity: $quantity) {
    calculatedOrder {
      id
      addedLineItems(first: 3) {
        edges {
          node {
            id
            quantity
          }
        }
      }
    }
    userErrors {
      field
      message
    }
  }
}

that works as expected and shows the added line item

 

commit order edit:

mutation commitEdit($id: ID!) {
  orderEditCommit(id: $id, notifyCustomer: false) {
    order {
      id
    }
    userErrors {
      field
      message
    }
  }
}

That request takes about 20 seconds and then always returns this error: 

{
	"data": {
		"orderEditCommit": {
			"order": null,
			"userErrors": [
				{
					"field": [
						"id"
					],
					"message": "Could not save the order edit."
				}
			]
		}
	},
	"extensions": {
		"cost": {
			"requestedQueryCost": 10,
			"actualQueryCost": 10,
			"throttleStatus": {
				"maximumAvailable": 1000.0,
				"currentlyAvailable": 990,
				"restoreRate": 50.0
			}
		}
	}
}

Example x-request-id:

fc0170d8-81c9-4d67-8732-e2b0125882cd

 

 

This is impacting a lot of merchants right now

Brian Singer
CTO & Cofounder of Subscription Service - Awtomic
Accepted Solution (1)
Liam
Shopify Staff
2669 288 730

This is an accepted solution.

Hi Brian - a fix for this was deployed yesterday. Let us know if you're still seeing any issues.

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Replies 2 (2)

Brian_S
Shopify Partner
152 19 39

Looks like Shopify is aware: 

https://twitter.com/liam_at_shopify/status/1735317486764015676

Brian Singer
CTO & Cofounder of Subscription Service - Awtomic
Liam
Shopify Staff
2669 288 730

This is an accepted solution.

Hi Brian - a fix for this was deployed yesterday. Let us know if you're still seeing any issues.

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog