Hi ,
I am trying to upload Emails using dotnet web-services and getting
error "{"DocumentManagement.CreateNode() failed on the Livelink Server. No results were returned. Check the Livelink Server thread logs."}"
It is creating the node but not adding the version. Please see the attached logs for the same issue we captured.
Code
===========================================
//Authentication Service
Authentication.AuthenticationClient OTClient = new Authentication.AuthenticationClient();
Authentication.OTAuthentication otauth = new Authentication.OTAuthentication();
string AuthToken = OTClient.AuthenticateUser("XXXX", "XXXXXX");
Console.WriteLine(AuthToken);
Console.ReadLine();
// DocumentManagementClient docMan = new DocumentManagementClient("BasicHttpBinding_DocumentManagement_QA");
// Node newdoc =docMan.CreateNodeAndVersion (ref AuthToken,)
byte[] fileBytes = File.ReadAllBytes(@H:\My Documents\Abhimanu Walia\LNemails\Mails with attachment\REdblinkdetails.msg);
//Document Management Service
DocumentManagement.DocumentManagementClient DocClient = new DocumentManagement.DocumentManagementClient();
DocumentManagement.OTAuthentication otauthdoc = new DocumentManagement.OTAuthentication();
otauthdoc.AuthenticationToken = AuthToken;
Node newDoc = DocClient.GetNodeTemplate(ref otauthdoc, 940674, "Email");
Attachment attach = new Attachment();
attach.Contents = fileBytes;
attach.FileName = "testemail";
attach.CreatedDate = DateTime.Now;
attach.ModifiedDate = DateTime.Now;
newDoc = DocClient.CreateNode(ref otauthdoc, newDoc);
DocClient.AddVersion(ref otauthdoc, newDoc.ID, null, attach);
===========================================