You need to sign in to do that
Don't have an account?
Minhaj Arifin 5
Question on Trailhead Developer Intermediate: API Basics: Use bulk API challenge
Hello, I will appreciate your help on this please:
Need help to understand what I am doing wrong.
In developer intermediate section of trailhead
API Basics: Use bulk API challenge
Import Accounts Using Bulk API and Workbench
Using Bulk API and Workbench, import these account records (a CSV file).
This is what I tried in workbench:
Step 1: /services/data/XX.0/jobs/ingest
Executed POST
Step 2: /services/data/XX.0/jobs/ingest/jobID/batches
Changed Headers Content-Type to text/csv
"/Users/ediz/Downloads/bulkv2hocdata.csv"
Executed PUT
Step3: /services/data/XX.0/jobs/ingest/jobID.
In the request body, replaced the text with the following JSON text.
{
"state" : "UploadComplete"
}
Executed PATCH
Need help to understand what I am doing wrong.
In developer intermediate section of trailhead
API Basics: Use bulk API challenge
Import Accounts Using Bulk API and Workbench
Using Bulk API and Workbench, import these account records (a CSV file).
This is what I tried in workbench:
Step 1: /services/data/XX.0/jobs/ingest
Executed POST
Step 2: /services/data/XX.0/jobs/ingest/jobID/batches
Changed Headers Content-Type to text/csv
"/Users/ediz/Downloads/bulkv2hocdata.csv"
Executed PUT
Step3: /services/data/XX.0/jobs/ingest/jobID.
In the request body, replaced the text with the following JSON text.
{
"state" : "UploadComplete"
}
Executed PATCH
Sorry for this issue you are encountering.
May I suggest you please check with below link from the forums community with a similar discussion which might help you further.
- https://developer.salesforce.com/forums/?id=9060G000000Xht0QAC
Please let us know if this helps.Thanks,
Nagendra
At the first page (where you selected production and agreed the terms) it says "version", replace the "XX" with the version you choosed there, for example: /services/data/v41.0/jobs
Hope that helps.
Hey all! I have been getting frustrated with following the instructions for the example. When I got to do the next step I get an error message of "Insufficient Access". I copied the Id from the first line of the request. Any suggestions on what I'm doing wrong?
I get the following error in even after the job is complete in "Monitor Bulk Data Load Jobs" page of Salesforce Classic.
But, I am not able to complete the challenge in trailhead.
I get the error as :
Challenge Not yet complete... here's what's wrong:
Could not find at least 500 Account records with the Name like 'Bulk Company'.
When I tried to get the Bulk API Job Status in workbench, it gives error message as "InvalidJob: Cannot access V2 Jobs through this endpoint"
pls help me in completing this challenge
Step 2: /services/data/XX.0/jobs/ingest/jobID/batches
Changed Headers Content-Type to text/csv
"/Users/ediz/Downloads/bulkv2hocdata.csv" // This won't insert all the Accounts
Executed PUT
Instead of putting the directory of where the .csv file is located try the following:
1.) Open the .csv
2.) Ctrl+A to select all
3.) Copy this data
4.) Paste data into the body on the workbench
5.) Be sure to change the header to 'text/csv' and issue a PUT
6.) Follow up with your Step 3 as it is, that part is fine
This should insert all 500 Accounts.
Give that a shot.
Cheers,
Matt
/services/data/vXX/jobs/ingest/jobId/successfulResults
/services/data/vXX.0/jobs/ingest
e.g. Working URI
/services/data/v44.0/jobs/ingest/
Non-Working URI
/services/data/44.0/jobs/ingest/