Solved
Forum Discussion
MarcusH
8 days agoContributor III
I think you need to tell OS that the file has contents. Try this:
Dim fileName As String = "test.xlsx"
Dim filePath As String = $"Documents/Users/{StringHelper.RemoveSystemCharacters(si.UserName,False,False)}"
Dim XFfileDataInfo As New XFFileInfo(FileSystemLocation.ApplicationDatabase,fileName,filePath)
XFfileDataInfo.ContentFileContainsData = True
XFfileDataInfo.ContentFileExtension = XFfileDataInfo.Extension
Dim XFfileData As New XFFile(XFfileDataInfo, String.Empty, objByte)
BRApi.FileSystem.InsertOrUpdateFile(si, XFfileData)
mireles
7 days agoNew Contributor II
Hi Marcus, thank you so much for your reply! Unfortunately the file is still being saved as an XML. To clarify, when I download it to my computer it is saved as an XML. When I try to open it from the OneStream file explorer it does open in Excel but with no content.
Related Content
- 3 years ago