orderEditCommit return "Could not save the order edit."

Hello! Bringing this issue here, since we’re unable to solve it: for the last couple of days, whenever we’ve tried to edit an existing order from a specific merchant, we get the error “Could not save the order edit." without any further details. Any clues as to what the issue might be?

These are are requests:

mutation beginEdit($orderId: ID!) {
    orderEditBegin(id: $orderId) {
      calculatedOrder {
        id
        totalOutstandingSet {
          shopMoney {
            amount
          }
        }
        subtotalPriceSet {
          shopMoney {
            amount
          }
        }
      }
      userErrors {
        field
        message
      }
    }
  }
mutation addVariantToOrder(
    $calculatedOrderId: ID!
    $variantId: ID!
    $quantity: Int!
  ) {
    orderEditAddVariant(
      id: $calculatedOrderId
      variantId: $variantId
      quantity: $quantity
      allowDuplicates: true
    ) {
      calculatedLineItem {
        id
      }
      userErrors {
        field
        message
      }
    }
  }
mutation addDiscount($calculatedOrderId: ID!, $calculatedLineItemId: ID!) {
    orderEditAddLineItemDiscount(
      id: $calculatedOrderId
      lineItemId: $calculatedLineItemId
      discount: { percentValue: 100, description: "Full discount" }
    ) {
      addedDiscountStagedChange {
        id
      }
      userErrors {
        field
        message
      }
    }
  }
mutation commitEdit($calculatedOrderId: ID!) {
    orderEditCommit(
      id: $calculatedOrderId
      notifyCustomer: false
      staffNote: "Awtomic order adjustment"
    ) {
      order {
        id
      }
      userErrors {
        field
        message
      }
    }
  }

All of the previous requests seem to work, except for commitEdit, which is where we see the error.

Examples of this issue:

x-request-id (these two requests belong to the same order, they both failed)

4ac91563-af21-4ee5-8c1a-c8fd8551e7b1-1769524833

c49aa100-4c4c-4478-a1e3-09355aa5c724-1769524850

And the calculated order is

gid://shopify/CalculatedOrder/98529935422

The API version we’re currently using is 2025-04, but we also tried with 2026-01 and it failed as well.

Update: In case it helps, after more investigation, we’ve been able to narrow the issue to this variant in particular gid://shopify/ProductVariant/42394149781566 for some reason

1 Like

Hey @pabloGumix, since you have narrowed this down to a specific variant, does anything stand out to you as different in that variant than others that are working?

ie, does it have inventory available? Is it available to your app if you query the variant directly? Is it available to the same locations as the others? Is it a subscription or bundle product? Are you able to manually add this in the admin or do you also get errors there?

If there’s anything you can notice that is different that may give us more clarity on why it’s failing.

Hello! Thank you for replying! Yes, I believe we found the issue… it seems that the warehouse on this product was not activated. We’ve been having some weird unaccounted for changes in our store of late, and are suspicious that bulk updating be the culprit.

1 Like