0

getting error while inserting account using Bulk API 2.0 using workbench

ClientInputError : LineEnding is invalid on user data. Current LineEnding setting is LF

Csv Data

Name,Description,NumberOfEmployees
TestAccount1,Description of TestAccount1,30
TestAccount2,Another description,40
TestAccount3,Yet another description,50
0

Presumably before this request there was a POST to create the job. In that POST you can use the lineEnding property in the request body to change how end of line is defined for your csv. See below for example from Trailhead

{
  "operation" : "insert",
  "object" : "Account",
  "contentType" : "CSV",
  "lineEnding" : "CRLF"
}

There can be other potential contributing causes (e.g. Excel has multiple csv types, some of which work and some don't) but to me the lineEnding is the most obvious place to start.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.