[Advanced Excel] "A disk error occurred during a write operation. (Exception from HRESULT: 0x8003001D

Forge Component
(63)
Published on 2019-08-27 by Hanno
63 votes
Published on 2019-08-27 by Hanno

Hello,

It's not blocking me, but I get the following exception message whenever I perform the Workbook_Open_BinaryData server action against the attached .xls file (which opens without issue using Excel for Office 365 MSO v16.0.12624.20422 32-bit):

"A disk error occurred during a write operation. (Exception from HRESULT: 0x8003001D (STG_E_WRITEFAULT))"

This fails to repro when the file is resaved as an .xlsx file, so right now I'm just catching the exception and prompting the user to do that.


Hi Kirk

This is expected behaviour as the extension can only handle .xlsx files.

See here:https://github.com/JanKallman/EPPlus
"EPPlus is a .NET library that reads and writes Excel files using the Office Open XML format (xlsx)."

Hanno

The error message itself is funny though, you'd expect a nice "format not supported" or the like :).

Indeed!