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
Vinay RamuVinay Ramu 

InvalidBatch : Failed to process query: MALFORMED_QUERY: unexpected token: <

Dear Gurus,

I have created a custom object Voter__c with standard field "Name" and custom Master-Detail field "Precinct__c"(relationship with custom object Precinct__c).
Requirement is to upload few Voter records for precinct and queued job failing with this error. Does not clearly point out what's wrong with the file.
My file to upload:
<?xml version="1.0" encoding="UTF-8"?>
<sObjects xmlns="http://www.force.com/2009/06/asyncapi/dataload">
<sObject>
<Name>[Bulk API] Voter 1</Name>
<Precinct__c>a0J7F00000Hw7PuUAJ</Precinct__c>
</sObject>
<sObject>
<Name>[Bulk API] Voter 2</Name>
<Precinct__c>a0J7F00000Hw7PuUAJ</Precinct__c>
</sObject>
</sObjects>

Thanks,
Vinay
Best Answer chosen by Vinay Ramu
Vinay RamuVinay Ramu
Job operation was "query" upon changing operation to "insert", the Bulk API job was successful.

All Answers

Vinay RamuVinay Ramu
Job operation was "query" upon changing operation to "insert", the Bulk API job was successful.
This was selected as the best answer
Vinay RamuVinay Ramu
Resolved once job created with operation "insert'