04-13-2015 06:29 AM
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
04-13-2015 06:44 AM
It sounds like your client is timing out while the Application Server is serializing all of those query results.
Try using the DocumentQuery.ExecuteResults method. It will break the result set down into manageable chunks of results in the background.
04-13-2015 06:54 AM
04-13-2015 07:05 AM
Tim,
I don't find any unity API method like ExecuteResults().
Can you tell me exactly which method it is?.
Venkat
04-13-2015 07:09 AM
What is the business case? We may be able to come up with a better solution than trying to return that many documents at once.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.