03-27-2014 10:40 PM
Getting The operation has timed out error when trying to execute the below code.
DocumentQuery docQuery = app.Core.CreateDocumentQuery();
docQuery.AddTextSearchConstraint(DocumentQuery.TextSearchType.IDOLFullTextSearch, "Fee");
KeywordType accountKeywordType = app.Core.KeywordTypes.Find("Account Number");
docQuery.AddDisplayColumn(accountKeywordType);
// adding by generic DisplayColumn type
docQuery.AddDisplayColumn(DisplayColumnType.DocumentDate);
long maxDocuments = 10;
DocumentList docList = docQuery.Execute(maxDocuments); - Getting error here
Please tell me how to solve this issue?
03-28-2014 05:20 AM
From what I see you are searching every document type in the system with a full text search looking for the word "Fee". You are probably simply searching too many documents for the result to come back in a timely manner. I would suggest either using specific document types or a custom query along with a date range to limit your search.
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.