You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Shared string cache fails on AWS Lambda because it writes to /var/task #895
When calling MiniExcel.Query inside an AWS Lambda function (runtime .NET 8), the library attempts to create temporary files under the deployment root (/var/task/<guid>_miniexcelcache_position). That directory is read-only on Lambda, so the call throws IOException: Read-only file system and the .xlsx processing aborts.
This behavior is hardcoded at
Create a .NET Lambda that reads an XLSX stream and invokes MiniExcel.Query(stream);
Deploy it to AWS (runtime dotnet8) and invoke it with any XLSX containing shared strings;
Observe the execution failing with Read-only file system when the cache is created.
Current behavior
Execution throws System.IO.IOException when opening/creating the shared string cache file under /var/task, preventing the Excel reader from proceeding.
Expected behavior
The library should write its cache to a writable location (e.g., Path.GetTempPath()) or expose configuration to set the cache directory explicitly.
Workaround
Disable the cache using new OpenXmlConfiguration { EnableSharedStringCache = false } (with higher memory usage).
Activity
michelebastione commentedon Nov 5, 2025
Thank you for the very detailed bug report, I'll work on it in the next few days.
Fixes mini-software#895 by adding a option to use temp-path storage f…