FILE_NOT_SUPPORTED Error making Bulk Write request

FILE_NOT_SUPPORTED Error making Bulk Write request

Hello, I am trying to perform a Bulk Write request to the Leads module of Zoho CRM. I am able to successfully upload a zipped CSV file but I get the following error when I initiate the bulk write job:
  1. 400 - {"status":"error","code":"FILE_NOT_SUPPORTED","message":"File not supported for bulk write","details":{}}


Here is the CSV data:
  1. Email,First_Name,Last_Name
  2. admin@mydomain.com,john,doe
And here is the request I am using to upload the zipped CSV

  1. curl "https://content.zohoapis.com/crm/v5/upload" \
  2. -X POST \
  3. -H "Authorization: Zoho-oauthtoken 1000.xxx.xxx" \
  4. -H "X-CRM-ORG: 64990321" \
  5. -H "feature: bulk-write" \
  6. -F "file=@leads.zip"

I received a file ID from this upload request and make this bulk write request

  1. curl "https://www.zohoapis.com/crm/bulk/v5/write" 
  2. -X POST 
  3. -H "Authorization: Zoho-oauthtoken 1000.my-token.xxx" 
  4. -H "Content-Type: application/json" 
  5. -d "@app/services/zoho/payload.json"
And here is the payload.json
  1. {
  2.   "character_encoding": "UTF-8",
  3.   "operation": "insert",
  4.   "ignore_empty": true,
  5.   "resource": [
  6.     {
  7.       "type": "data",
  8.       "module": { "api_name": "Leads" },
  9.       "file_id": "1767869000159543001"
  10.     }
  11.   ]
  12. }

Can you please tell me why I get the error "File not supported for bulk write"

I know that uploaded files cannot be reused multiple times, this error happens the first time I attempt to import an uploaded file.

    • Sticky Posts

    • Kaizen #217 - Actions APIs : Tasks

      Welcome to another week of Kaizen! In last week's post we discussed Email Notifications APIs which act as the link between your Workflow automations and you. We have discussed how Zylker Cloud Services uses Email Notifications API in their custom dashboard.
    • Kaizen #216 - Actions APIs : Email Notifications

      Welcome to another week of Kaizen! For the last three weeks, we have been discussing Zylker's workflows. We successfully updated a dormant workflow, built a new one from the ground up and more. But our work is not finished—these automated processes are
    • Kaizen #152 - Client Script Support for the new Canvas Record Forms

      Hello everyone! Have you ever wanted to trigger actions on click of a canvas button, icon, or text mandatory forms in Create/Edit and Clone Pages? Have you ever wanted to control how elements behave on the new Canvas Record Forms? This can be achieved
    • Kaizen #142: How to Navigate to Another Page in Zoho CRM using Client Script

      Hello everyone! Welcome back to another exciting Kaizen post. In this post, let us see how you can you navigate to different Pages using Client Script. In this Kaizen post, Need to Navigate to different Pages Client Script ZDKs related to navigation A.
    • Kaizen #210 - Answering your Questions | Event Management System using ZDK CLI

      Hello Everyone, Welcome back to yet another post in the Kaizen Series! As you already may know, for the Kaizen #200 milestone, we asked for your feedback and many of you suggested topics for us to discuss. We have been writing on these topics over the