I am getting the following error in the log file when using the web service to add a version to a Form Template View
Service error occurred
Error Code: Core.DispatchedServiceThrewException
Error Message: Dispatched service DocumentManagement threw exception DocMan.NodeDoesNotSupportAddingVersions : Node does not support adding versions.
Extra input data left on socket (13808 bytes)
Thu Sep 26 15:57:00 2013 - 328310 Func='lapi.InvokeService:ContentService.UploadContent()' Timing: 2.067 2.066 2.067
The code I am using is as follows:
try
{
sTargetFile = rv_view.Target + sName;
if (sTargetFile.IndexOf(".htm") == -1)
sTargetFile = sTargetFile + ".htm";
otdocman.Node newnode = new otdocman.Node();
newnode = Authentication.GetNode(iNode);
newnode.ID = iNode;
FileInfo myfile = new FileInfo(sTargetFile);
Authentication.AddVersion(newnode.ID, myfile);
myfile = null;
}
catch (Exception ex)
{
MessageBox.Show("Upload error - " + ex.Message);
lbStatus.Text = "Cannot upload using WEBSERVICE";
return;
}
When I use a LAPI call
myDoc.CreateVersion(-2000, iNode, sTargetFile, myInfo);
it goes through without any errors.
Any help would be much appreciated.