I want to copy a file from outside pdm to the vault on an existing file. The destination file is checked out!
Therefore I use the method "AddFile2":
Code: Select all
ExcelFileName = _saveName;
ExcelFilePath = _savePath;
DestinationFolder = (IEdmFolder8)Vault.GetFolderFromPath(_savePath);
DestinationFolder.AddFile2(0, ExcelTemplate, out int addFileStatus, _saveName, (int)EdmAddFlag.EdmAdd_Refresh);
Code: Select all
"E_EDM_NAME_ALREADY_EXISTS: There is already a file with the specified name in this folder."
Cheers Mario