cancel
Showing results for 
Search instead for 
Did you mean: 

The operation has timed out

Toniyo_Jackson
Champ in-the-making
Champ in-the-making

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?

1 REPLY 1

Mike_Saville
Elite Collaborator
Elite Collaborator

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.

Getting started

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.