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
forceAMPforceAMP 

BulkApi query response is zero bytes

It appears a change was made by salesforce to the repsonse message to a bulkapi query request when the result is zero rows.

Previously, the response contained the headings row and nothing else.  After the change, the response is zero bytes long (i.e. there is no row of headings).

Is this a bug or a permamnent change in behavior?

Thanks,
forceAMPforceAMP
Correction:  Previously, the salesforce server returned the string "Records not found for this query" for a zero record result.

Now it returns a zero byte repsonse.
Joachim RoeseckeJoachim Roesecke
We are facing exactly the same issue and it is heavily disrupting existing integrations. This change happened some time between the 23rd April 22:56 and the 24th April 02:56 (both UTC). If this was an intended change, I would have appreciated a notification about it. Now, we have to build workarounds very quickly. In our case, it throws NullPointerExceptions in our Java programs because there basically is no response any more.