Shopify Update a Product Issue

Hi,

I’m having some issues with updating a Shopify product, getting this error:
" BundleValidationError
Validation failed for 1 parameter(s).

  • Missing value of required parameter ‘data’."

Idk, I’ve rechecked the mapping and this doesn’t really make sense to me.

Scenario details are as below.
Step-1 Search for a product on shopify:

Output bundle for Step-1:

[
{
“tags”: [
“Monogram”
],
“image”: {
“src”: “https://cdn.shopify.com/s/files/1/0627/8529/0398/files/COVER0_PATTERN_ToyStory4_376a0255-b41a-4224-82ed-0608331b4c61.png?v=1697834300”,
“alt”: null,
“width”: 1500,
“height”: 1500,
“id”: 36322381562014,
“position”: 1,
“product_id”: 7562723983518,
“variant_ids”: ,
“created_at”: “2023-10-20T20:38:20.000Z”,
“updated_at”: “2023-10-20T20:38:20.000Z”
},
“images”: [
{
“id”: 36322381562014,
“alt”: null,
“created_at”: “2023-10-20T20:38:20.000Z”,
“updated_at”: “2023-10-20T20:38:20.000Z”,
“height”: 1500,
“width”: 1500,
“position”: 1,
“product_id”: 7562723983518,
“src”: “https://cdn.shopify.com/s/files/1/0627/8529/0398/files/COVER0_PATTERN_ToyStory4_376a0255-b41a-4224-82ed-0608331b4c61.png?v=1697834300”,
“variant_ids”:
}
],
“id”: 7562723983518,
“title”: “#378 Toy Story 4 Doodle Monogram”,
“body_html”: “

These resources are exclusively intended for personal use. We kindly request that you refrain from using them for commercial purposes, as our freebies may include copyrighted material, and our goal is to ensure that no one encounters any legal complications.

”,
“vendor”: “My Store”,
“product_type”: “Sublimation Designs”,
“created_at”: “2023-10-20T20:38:10.000Z”,
“handle”: “378-toy-story-4-doodle-monogram”,
“updated_at”: “2023-10-23T20:39:32.000Z”,
“published_at”: null,
“template_suffix”: null,
“published_scope”: “web”,
“status”: “draft”,
“admin_graphql_api_id”: “gid://shopify/Product/7562723983518”,
“options”: [
{
“id”: 9668402839710,
“product_id”: 7562723983518,
“name”: “Title”,
“position”: 1,
“values”: [
“Default Title”
]
}
],
“variants”: [
{
“barcode”: null,
“compare_at_price”: null,
“created_at”: “2023-10-20T20:38:10.000Z”,
“fulfillment_service”: “manual”,
“grams”: 0,
“id”: 42824381038750,
“image_id”: null,
“inventory_item_id”: 44924325724318,
“inventory_management”: “shopify”,
“inventory_policy”: “continue”,
“inventory_quantity”: 999,
“old_inventory_quantity”: 999,
“option1”: “Default Title”,
“option2”: null,
“option3”: null,
“position”: 1,
“presentment_prices”: [
{
“price”: {
“amount”: “0.00”,
“currency_code”: “AUD”
},
“compare_at_price”: null
}
],
“price”: “0.00”,
“product_id”: 7562723983518,
“requires_shipping”: false,
“sku”: null,
“taxable”: true,
“title”: “Default Title”,
“updated_at”: “2023-10-23T20:39:32.000Z”,
“weight”: 0,
“weight_unit”: “kg”
}
],
IMTLENGTH”: 1,
IMTINDEX”: 1
}
]

Step-2 Update a product (Field Mapping):

Error:

API Reference for same:

The goal here is to change the status of the product from draft to active.

It is showing an output bundle in step-1 but there is no input bundle in step-2. Why? I’ve tried re-adding the modules, that didn’t work either.

Can anybody guide what the issue is here?

Regards,
Sohaib

Hi there,

Are you adding a product image via the “update a product” module?

I believe, if you add the image, you need to get the image data with any download module (HTTP/get a file) first and map the data variable in “data filed”.

:slight_smile:

2 Likes

Thanks for your input. I actually ended up solving this using “Shopify - Make an API Call” module. Since I only needed to change the status of the product from “draft” to “active”.

2 Likes

Great! :slight_smile:

I am Glad that you manage to find the workaround!

2 Likes