Here's the problem. I have an object that has been added somewhere in CS and I want to add that object as a new version to an existing object. I have both nodes and I have tried various combinations of DAPI.AddVersion like:
newDocument = DAPI.GetNode(DocName,MapDest)
DAPIVERSION OrigVersion = DAPI.GetVersion(newDocument,newDocument.pVersionNum)
//DAPIVERSION NewVersion = DAPI.GetVersion(MapNode,MapNode.pVersionNum)
DAPIVERSION NewVersion = DAPI.AllocVersion(DAPISESS)
TranStatus=DAPI.CopyVersion(OrigVersion,MapNode,NewVersion,DAPI.VCOPY_ADDVER)
But all I get is a SQL error. Can any one give be a different method or tell me what I need to fix this one?