Hi...
again I have a problem with Documentum .... which explained below ...
I have three methods
first upload repository ....
second get a repository file ....
third deletes a repository file ....
this class with three methods work well in a desktop environment ...
But in a web environment contains errors when getting the file (second) and delete it (third)...
| GetFileToDocumentum log error |
|---|
InnerException = {"Operation output generation failed: could not retrieve data for identity: ################."} Message = "Service method \"Get\" invocation failed." StackTrace = " at Emc.Documentum.FS.Runtime.Context.Impl.ClientReflectionServiceInvoker.Invoke(Object proxy, MethodInfo method, Object[] args)\r\n at Emc.Documentum.FS.Runtime.Context.Impl.SoapClientInvocationHandler.Invoke(Object proxy, MethodInfo method, Object[] ... |
| DeleteFile log error |
|---|
InnerException = {"\"Delete\" operation failed for object: ################."} Message = "Service method \"Delete\" invocation failed." StackTrace = " at Emc.Documentum.FS.Runtime.Context.Impl.ClientReflectionServiceInvoker.Invoke(Object proxy, MethodInfo method, Object[] args)\r\n at Emc.Documentum.FS.Runtime.Context.Impl.SoapClientInvocationHandler.Invoke(Object proxy, MethodInfo method, Object[] ... |
i know the message said that the id is not found, But I know that the id exists in the repository
| GetFileToDocumentum Code |
|---|
public byte[] GetFileToDocumentum(string documentumId) { ObjectIdentity objectIdentity = new ObjectIdentity(new ObjectId(documentumId), _repository); ObjectIdentitySet objectIdentitySet = new ObjectIdentitySet(); objectIdentitySet.AddIdentity(objectIdentity); DataObject dataObject = null; try { PropertyProfile propertyProfile = new PropertyProfile(PropertyFilterMode.ALL); ContentProfile contentProfile = new ContentProfile(); OperationOptions operationOptions = new OperationOptions(); ContentTransferProfile contentTransferProfile = new ContentTransferProfile(); PermissionProfile permissionProfile = new PermissionProfile(); permissionProfile.PermissionTypeFilter = PermissionTypeFilter.ANY; operationOptions.PermissionProfile = permissionProfile; contentTransferProfile.TransferMode = ContentTransferMode.MTOM; contentProfile.FormatFilter = FormatFilter.ANY; operationOptions.ContentTransferProfile = contentTransferProfile; operationOptions.PropertyProfile = propertyProfile; operationOptions.ContentProfile = contentProfile; operationOptions.SetProfile(contentProfile); DataPackage dataPackage = objectService.Get(objectIdentitySet, operationOptions); <--- Here error.... dataObject = dataPackage.DataObjects[0]; } catch (Exception ex) { throw ex; } Content contentObj = dataObject.Contents[0]; return contentObj.GetAsByteArray(); } |
| DeleteFile Code |
|---|
public void DeleteFile(string documentumId) { try { DeleteProfile deleteProfile = new DeleteProfile(); deleteProfile.IsDeepDeleteFolders = true; deleteProfile.IsDeepDeleteChildrenInFolders = true; OperationOptions operationOptions = new OperationOptions(); operationOptions.DeleteProfile = deleteProfile; ObjectIdentity sampleCabinetIdentity = new ObjectIdentity(new ObjectId(documentumId), _repository); ObjectIdentitySet objIdSet = new ObjectIdentitySet(); objIdSet.AddIdentity(sampleCabinetIdentity); objectService.Delete(objIdSet, operationOptions); <--- Here error.... } catch (Exception ex) { throw ex; } } |
thanks..