Open mscc-sascha opened 8 months ago
Thanks, @mscc-sascha for reporting this. We can repro the issue. It has been put on our backlog. We unfortunately have no timelines to share at this point.
One tricky workaround is editing the document after switching back to the PPT Online and calling getFileAsync
.
I want to retrieve the file content of certain PowerPoint presentations using
Office.context.document.getFileAsync(Office.FileType.Compressed)
. When I call the function within PowerPoint Online, then open the document in PowerPoint for Desktop (Windows) to call the function again and finally switch back to PowerPoint Online and call the function again, an error is displayed:I couldn't reproduce this error by creating any blank presentation. The error only occurs with some examples, couldn't figure out the difference of the documents as I broke it down to the minimum.
Your Environment
Expected behavior
Getting the file content should work in the described case.
Current behavior
An error is thrown:![image](https://github.com/OfficeDev/office-js/assets/87060669/acb2672f-dfb2-425c-8e23-fff4f90d8f05)
Steps to reproduce
Office.context.document.getFileAsync(Office.FileType.Compressed)
(I attached the GitHub Gist for Scriptlab)Office.context.document.getFileAsync(Office.FileType.Compressed)
againOffice.context.document.getFileAsync(Office.FileType.Compressed)
again --> The error is shownFor simplicity I attached a video explaining the steps to reproduce the error.
Link to live example(s)
Attachements