How to save a file on an existing file in pdm? C#
Posted: Mon Jun 27, 2022 10:20 am
I'm stuck...
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":
Unfortunately im getting an error like this:
Any suggestions?
Cheers Mario
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