function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Atif RazzaqAtif Razzaq 

Einstein Intent API: Missing File: case_routing_intent.csv

While doing trail: "Einstein Intent API Basics>Create the Dataset"

I executed following command replacing "<TOKEN>" on Mac.
curl -X POST -H "Authorization: Bearer <TOKEN>" -H "Cache-Control: no-cache" -H "Content-Type: multipart/form-data" -F "type=text-intent" -F "path=http://einstein.ai/text/case_routing_intent.csv" https://api.einstein.ai/v2/language/datasets/upload

I got following error: 
{"message":"Failed to download the dataset from the public URL."}

Please help and advise further.

Thanks
SandhyaSandhya (Salesforce Developers) 
Hi,

The .zip file URL isn't referenced using https. When creating a dataset from a .zip file in Apex, be sure that the URL is referenced using the https protocol and not http.

Refer below link which can help you.

https://metamind.readme.io/v1/page/troubleshooting
 
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
                                             
Best Regards
Sandhya
 
 
Atif RazzaqAtif Razzaq
Hi Sandhya

Thanks for the reply...I am not using APEX... I am simply running the curl command in terminal. I have tried running the command with http and https both but got the same error. Accessing 'http://einstein.ai/text/case_routing_intent.csv' in browser also throws an error.

I am referring to following trail:
https://trailhead.salesforce.com/modules/einstein_intent_basics/units/einstein_intent_basics_dataset

Where fo I find the location of file: case_routing_intent.csv?

Thanks