Hello all,
I am using the following code to create and check-in a document. It's working fine in few environments but it's throwing flat space error in another environment. Later I got to know that it's a new configuration introduced in 8.5.
var folder = GetFolderById(Session, folderId);
var document = folder.Database.CreateDocument();
// Set document attributes such as Author, clas and type.
document.CheckIn(filePath, imCheckinDisposition.imCheckinNewDocument,
imCheckinOptions.imDontKeepCheckedOut, ref iErrs);
var folderContent = (IManDocuments)folder.Contents;
var retDoc = (IManDocument)folderContent.AddDocumentReference(document);
document.Refile(folder.Database.CreateBlankProfile(), folder.Workspace.Security);
folderContent.Refresh();
folder.Update();
Above code is throwing error when document.CheckIn is invoked.
Any help would be appreciated.
Thanks.