forcedotcom / forcedotcom/wsc

getBatchResult does not support CSV content type

Open
#201 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
276
Forks
223
PR merge metrics
No merged PRs in 30d

Description

It would appear that when creating a job with the CSV content type and uploading CSV batches most requests (those made by getJobStatus, getBatchInfo, etc) transmit response data in XML format which is parsed successfully. However ,`/services/async/40.0/job/xxx/batch/xxx/result` returns its response in CSV format (the format specified for the job). The getBatchResult method attempts to parse this data as XML and raises an exception: `XmlPullParserException only whitespace content allowed before start tag and not " (position: START_DOCUMENT seen "... @1:1)`. It looks like fixing this will require some new work to deserialize a CSV as a `Result` object.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.