I’m working on the Listing products multiple at a time using “bulkOperationRunMutation”, but I’m stuck at “bulkOperationRunMutation”. It giving response as below
{“data”:{“bulkOperationRunMutation”:{“bulkOperation”:null,“userErrors”:[{“message”:“Unexpected file structure - expected JSONL”,“field”:null}]}},“extensions”:{“cost”:{“requestedQueryCost”:10,“actualQueryCost”:10,“throttleStatus”:{“maximumAvailable”:1000.0,“currentlyAvailable”:990,“restoreRate”:50.0}}}}
I’m successful in uploading the .jsonl file , now working on run “bulkOperationRunMutation”, but every time it throwing this “Unexpected file structure” error.
Here is my Mutation call request to curl call
{“query”:“mutation{bulkOperationRunMutation(mutation: "mutation call($input:ProductInput!){productCreate(input:$input){product{descriptionHtml,giftCard,handle,id,images{id,src},productType,status,title,vendor,variants{barcode,compare_at_price,created_at,fulfillment_service,id,inventory_item_id,inventory_management,inventory_policy,inventory_quantity,position,price,product_id,requires_shipping,sku,taxable,title,updated_at} edges{node{id,title,inventoryQuantity}}} userErrors { message field } } }", stagedUploadPath:"tmp/63512346868/bulk/8760c93c-e657-4799-8e61-1880b7a9e9ed/Request_4-3.jsonl"){bulkOperation{id,url,status}userErrors{message,field}}}”,“variables”:{}} Troubleshooting
And I’ve attached the respective .jsonl file which is uploaded. (please note it not accepting the .json file as attachment so I’ve changed the file extension as .csv)
Please help to understand the bug in file structure or this mutation request.