Shopify bulk product create operation returning "The JSONL file could not be found".

Shopify Partner
8 0 0

Hello Guys,

I am trying to work on bulk product creation operation, but receiving in a response from Shopify

"The JSONL file could not be found. Try uploading the file again, and check that you've entered the URL correctly for the stagedUploadPath mutation argument."


I have created a JSONL file with following , 


{ "input": { "title": "Sweet new snowboard 1"} }



Then create stage file URL by mutation "stagedUploadsCreate" and getting making following call check the code 


 const apiUrl =;
            const filePath = './downloads/';
            const formData = new FormData();
  [0].parameters.forEach(param => {
                // console.log(param,'ook')
                formData.append(, param.value);
            formData.append('file', fs.createReadStream(filePath));

            const uploadedJsonUrl = fetch(, {
            method: 'POST',
            body: formData,
            .then(response => {
                if (!response.ok) {
                    throw new Error(`HTTP error! Status: ${response.status}`);
                return response.text(); // Return the entire response as text
            .catch(error => {
                return {error:"error in file upload from shopify"}
                // console.error(error);



Here I am using node js,
1. "filePath" = path of my file under my app directory 

2.[0].parameters = creating or appending the dynamic parameters from the response of stagedURL

3.  fs.createReadStream(filePath) = appending the file to the form data,

I am getting the response after upload call "

But even it returns the error after running the bulk operation for the products created. 


Replies 0 (0)