Below is the Result of the Bulk API job(batch) I submitted :
<?xml version="1.0" encoding="UTF-8"?> <results xmlns="http://www.force.com/2009/06/asyncapi/dataload"> <result> <errors> <fields>MailingStateCode</fields> <message>A country/territory must be specified before specifying a state value for field: Mailing State/Province Code</message> <statusCode>FIELD_INTEGRITY_EXCEPTION</statusCode> </errors> <success>false</success> <created>true</created> </result> </results>
If there is a clear error with the state code, why is it still creating the record (value true for created element in the response)? What am I missing here?
Because the value for created element is true in the response, I tried to find the record in the system but I don't see.
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_upsert_upsertresult.htm -- I have gone through this link but still not clear on how to interpret the above result.
Note: I am sending only one record for the whole Bulk Job and doing this through ETL tool.