Can't open excel or powerpoint files in edit mode #169
-
Hi, I found your project and I am trying to adapt it to my usecase (we have a .net 4.8 web app), so I had to downgrade and rework code to make it work with .net framework... I managed to get DOCX files to properly open and save in edit mode, however that's not the case for excel or powerpoint... With excel I get "We're sorry, we couldn't open your workbook. It's possibly corrupt or using a file format that's not supported." I have compared your host and min - I can see that Files/Id is sending correct JSON response to OOS (at least I don't see anything different), then it triggers Fies/ProcessLock couple of time it stops (and it returns OK), and then it stops... ULS logs proved less than useless (I have enabled verbose logging), but I can't pinpoint the mistake I have.... Could you please help me in how I can debug the error or how to get something out of OOS server? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Update: Just to eliminate any issues coming from framework, I moved my changes to your source and still can't open pptx/xlsx in edit mode. Our files in storage don't have extension in its name (I set this myself in CheckFileInfo), could this be the culprit? Update2: It is definitely file extension... When I appended .xlsx into blob name editor was able to open it. Is there a way to do this without file extension? We have hundreds of thousands of blob files in our storage without extension (we keep track of extensions via different means)? |
Beta Was this translation helpful? Give feedback.
Hi Petr,
I managed to find the root cause of the issue - CheckFileInfo.BaseFileName property is required to have extension (and I was only setting our blob name here).
For DOCX endpoint, this is not important, but for PPTX/XLSX it is... In all fairness, MS does say that extension is required here, however they do not make it easy to identify the problem.