Shopify Bulk Inventory Update - Staged Upload Internal Server Error

Shopify Bulk Inventory Update - Staged Upload Internal Server Error

tricotur
Visitor
2 0 0

Hi Shopify Community,

 

I’m working on updating inventory levels in bulk using the Shopify GraphQL API. My workflow involves:

  1. Fetching inventory item IDs using a bulk query (bulkOperationRunQuery).
  2. Preparing a valid JSONL file for the updates.
  3. Requesting a staged upload URL via stagedUploadsCreate.
  4. Uploading the file and starting the bulk mutation operation.

While the first steps work smoothly (bulk query completes, JSONL file generates), I’m encountering an "INTERNAL_SERVER_ERROR" when requesting the staged upload URL. 

Error Response: (This happens consistently across multiple retries.)

 

{
"errors": [
{
"message": "Internal error. Looks like something went wrong on our end.\nRequest ID: <unique-id>",
"extensions": {
"code": "INTERNAL_SERVER_ERROR",
"requestId": "<unique-id>"
}
}
],
"data": null
}

 

This is currently blocking my ability to update inventory in bulk to reflect supplier stock updates. What I’ve Done:
- Format of the JSONL file ( am I mistaken here?):

 

{"inventoryItemId": "gid://shopify/InventoryItem/1234567890", "available": 100}
{"inventoryItemId": "gid://shopify/InventoryItem/1234567891", "available": 50}

- Confirmed the inventory item IDs are valid (retrieved from the previous bulk query).
- Verified my app permissions include write_inventory and read_inventory.
- Retried the request multiple times with consistent errors.

 

Questions:
1. Has anyone encountered this stagedUploadsCreate internal error before?
2. Is there something I might be missing in the request or setup?

3. Do you have any recommendations for this scenario?

 

I’d appreciate any insights or guidance, thank you so much! 

Replies 0 (0)