cancel
Showing results for 
Search instead for 
Did you mean: 

Error while retrieving documents using Unity API

Venkatroyal_Ayy
Champ in-the-making
Champ in-the-making

Hi,

    I am retrieving a list of documents using the documentQuery object.

    The no. of documents will be more than 8,00,000. I am using the documentQuery.execute() method.

    Find below the exception message and stacktrace.

    System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.InvalidOperationException: xml node is not of type responseList, it is type: error

    at Hyland.Types.EncryptedServiceObject.ReadXml(XmlReader reader, SerializationContext context)

    at Hyland.Public.ServiceObject.ReadXml(String xml, SerializationContext context)

    at Hyland.Types.SoapServiceClient.Execute(IRequestList requestList)
    at Hyland.Unity.Application.Execute(RequestList requestList)
    at Hyland.Unity.Application.Execute(Request request)
    at Hyland.Unity.Application.ExecuteWithValidation(Request request)
    at Hyland.Unity.ServiceAccess.ExecuteQuery(Application app, DocumentQuery qry, Int64 maxDocs, Boolean retrieveKeywords)
    at Hyland.Unity.DocumentQuery.Execute(Int64 maxDocuments, DocumentRetrievalOptions docRetrievalOptions)
    at Hyland.Unity.DocumentQuery.Execute(Int64 maxDocuments)

    Please help me out.

Venkat

5 REPLIES 5

Timothy_Cosgrif
Star Collaborator
Star Collaborator

Apologies, the method you're looking for is ExecuteQueryResults. It should be in OnBase 12 or later.