Skip to content

Bulk Read: Unable to use a JSON QBE #30

@kcoleman-marklogic

Description

@kcoleman-marklogic

If I try to perform a bulk read using a JSON QBE, the server returns REST-REPEATEDPARAM. Seems like the request is not being properly constructed. An equivalent read using an XML QBE works as expected. See next comment for sample code.

Exception in thread "main" com.marklogic.client.FailedRequestException: Local message: search failed: Bad Request. Server Message: REST-REPEATEDPARAM: (rest:REPEATEDPARAM) Endpoint does not support repeated parameter: format can only appear once
at com.marklogic.client.impl.JerseyServices$JerseySearchRequest.getResponse(JerseyServices.java:2074)
at com.marklogic.client.impl.JerseyServices.getBulkDocumentsImpl(JerseyServices.java:775)
at com.marklogic.client.impl.JerseyServices.getBulkDocuments(JerseyServices.java:715)
at com.marklogic.client.impl.DocumentManagerImpl.search(DocumentManagerImpl.java:371)
at com.marklogic.client.impl.JSONDocumentImpl.search(JSONDocumentImpl.java:1)
at com.marklogic.client.impl.DocumentManagerImpl.search(DocumentManagerImpl.java:342)
at com.marklogic.client.impl.JSONDocumentImpl.search(JSONDocumentImpl.java:1)
at examples.ReadExamples.qbeExample(ReadExamples.java:64)
at examples.ReadExamples.main(ReadExamples.java:101)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions