02-06-2014 10:31 AM
Hi, Im trying to change a document type for a Document, with this code(Unity Client Script):
lockInfo = doc.LockDocument(); if (lockInfo.Status == DocumentLockStatus.LockObtained) { DocumentType docType = docList.Find("XXXXXXXXXXXXXXX"); ReindexProperties reindexProperties = storage.CreateReindexProperties(doc, docType); Document newDocument = storage.ReindexDocument(reindexProperties);}lockInfo.Release();
but I'm getting a C# Exception "The operation has timed out", from Onbase I'm getting
System.Net.WebException: The operation has timed out at System.Net.HttpWebRequest.GetResponse() at Hyland.Types.OptimizedSoapServiceClient.ExecuteCore(RequestList requestList, Action`1 action) at Hyland.Types.SoapServiceClient.Hyland.Types.IServiceClientInternal.Execute(RequestList requestList, Action`1 action) at Hyland.Types.SoapServiceClient.Execute(IRequestList requestList) at Hyland.Unity.Client.Runtime.ScriptExecutor.detachDocumentListener(String documentEventID) at Hyland.Unity.Client.Runtime.ScriptExecutor.ExecuteClientScriptOnDocuments(Int64 operationID, Int64[] documentIDs) at Hyland.Unity.Client.Runtime.ScriptExecutor.ExecuteClientScriptOnDocuments(Int64 operationID, Int64[] documentIDs) at Hyland.Unity.Client.Runtime.UnityExecutor.ExecuteClientScriptOnDocuments(Int64 operationID, Int64[] documentIDs) at Hyland.Canvas.Controls.ClientScript.ClientScriptController.Execute(Int64 operationID, Int64[] documentIDs, String taskName, String documentName) at Hyland.Canvas.Controls.Commands.ClientScript.ExecuteScriptProgressDialog.OnContentRendered(EventArgs e)
How can I solve this?, thanks
Regards,
02-06-2014 10:35 AM
02-06-2014 10:43 AM
Sorry is the same, I just wrote it wrong when was copying message it would be docType in both cases.
Thanks,
02-06-2014 11:42 AM
There are 2 things I would check/change:
using (DocumentLock docLock = doc.LockDocument()){ if (docLock.Status == DocumentLockStatus.LockObtained) { DocumentType docType = docList.Find("XXXXXXXXXXXXXXX"); ReindexProperties reindexProperties = storage.CreateReindexProperties(doc, docType); Document newDocument = storage.ReindexDocument(reindexProperties); } else { throw new Exception(String.Format("Could not lock document {0}.", doc.ID)); }}
03-03-2014 05:56 AM
Hey Carlos,
Were you ever able to find a solution to this issue? I'm interested to see.
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.