[Bug][Admin GraphQL] updateOrder fails with "Order tags is invalid"

dylanpierce
Shopify Partner
205 3 91

Hi all,

One of my app customers is unable to edit tags on their Shopify order, in addition I'm unable to programmatically update the order tags either.

My app performs many order tag updates a day, and this order in particular is stuck.


Response

 

'x-request-id': [ '960a1b3d-908a-4fa2-b78c-b2ed6019ad11' ]

 

 

 

 

{
    "data": {
        "orderUpdate": {
            "userErrors": [
                {
                    "field": [
                        "tags"
                    ],
                    "message": "Order tags is invalid",
                    "__typename": "UserError"
                }
            ],
            "order": {
                "id": "gid://shopify/Order/4122580156481",
                "note": "",
                "tags": [
                    "debra",
                    "heat denied",
                    "ID verification required",
                    "MASS",
                    "Ordercup"
                ],
                "__typename": "Order"
            },
            "__typename": "OrderUpdatePayload"
        }
    },
    "extensions": {
        "cost": {
            "requestedQueryCost": 10,
            "actualQueryCost": 10,
            "throttleStatus": {
                "maximumAvailable": 2000,
                "currentlyAvailable": 1990,
                "restoreRate": 100
            }
        }
    }
}

 

 

 


I have tried changing the casing & removing spaces from the tag I'm attempting to add to this order, but no luck. Any guidance would be appreciated.

I can reproduce this bug with this order and generate more `x-request-id`'s if that's helpful.


Founder of Real ID - Verify your customer's real IDs easily & securely with modern AI
Replies 3 (3)

awwdam
Shopify Staff
249 42 36

Hey @dylanpierce,

This does seem to be unexpected behaviour and a rather strange error. Using the request ID I was able to locate request logs, however I didn't see any glaring issues with the mutation or values being passed, and using a the mutation (orderUpdate) to update order tages on my test enviroment worked exactly as expected. 

You also mentioned that the merchant is also having issue with updating the tags, and I am guessing this means they are unable to add tags via the store admin directly? If that is the case, I would absolutely suggest having them contact support directly to allow for authenicated support, from there they can share details and someone from our Technical Support team can take a closer look into this. 

If you are able to replicate this across more than one test enviroment or store, please feel free to use our API bug reporting form following this link here and by selecting Report an issue.

Cheers!

awwdam | API Support @ 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

adriele
New Member
4 0 0

I'm facing the exact same issue when I try to update the customer's tags. I have created a post about it in this community as well and I'm still waiting for a proper response from Shopify Support. 

adriele
New Member
4 0 0

I'm facing the exact same issue when I try to update the customer's tags. I have created a post about it in this community as well and I'm still waiting for a proper response from Shopify Support.