Skip to content

Work Instruction Export Fails on Work Instructions with Broken (0 Byte) Images #175

@EyeBrawler

Description

@EyeBrawler

This occured when exporting the G3 Guts work instruction... It is possible that the problematic images could be ones that were not saved correctly.

2026-03-18T16:46:22.0674504Z [11:46:22 WRN] Unable to export work instruction: Guts to xlsx. Exception type: SixLabors.ImageSharp.UnknownImageFormatException
2026-03-18T16:46:22.0674859Z SixLabors.ImageSharp.UnknownImageFormatException: Image cannot be loaded. Available decoders:
2026-03-18T16:46:22.0674879Z  - GIF : GifDecoder
2026-03-18T16:46:22.0674895Z  - PBM : PbmDecoder
2026-03-18T16:46:22.0674909Z  - Webp : WebpDecoder
2026-03-18T16:46:22.0674923Z  - JPEG : JpegDecoder
2026-03-18T16:46:22.0674936Z  - TGA : TgaDecoder
2026-03-18T16:46:22.067495Z  - QOI : QoiDecoder
2026-03-18T16:46:22.0674964Z  - BMP : BmpDecoder
2026-03-18T16:46:22.0674977Z  - TIFF : TiffDecoder
2026-03-18T16:46:22.0674991Z  - PNG : PngDecoder
2026-03-18T16:46:22.0675005Z
2026-03-18T16:46:22.0675049Z    at SixLabors.ImageSharp.Formats.ImageFormatManager.ThrowInvalidDecoder(ImageFormatManager manager)
2026-03-18T16:46:22.0675068Z    at SixLabors.ImageSharp.Image.InternalDetectFormat(Configuration configuration, Stream stream)
2026-03-18T16:46:22.0675094Z    at SixLabors.ImageSharp.Image.Load(DecoderOptions options, Stream stream)
2026-03-18T16:46:22.0675126Z    at MESS.Services.Files.WorkInstructions.WorkInstructionFileService.InsertImagesIntoCell(IXLWorksheet worksheet, Int32 row, Int32 column, List`1 mediaPaths, IProgress`1 progress, CancellationToken cancellationToken, Int32 stepIndex, Int32 totalSteps) in /home/runner/work/MESS/MESS/MESS/MESS.Services/Files/WorkInstructions/WorkInstructionFileService.cs:line 635
2026-03-18T16:46:22.0675154Z    at MESS.Services.Files.WorkInstructions.WorkInstructionFileService.ExportToXlsxAsync(WorkInstructionFileDTO workInstructionToExport, IProgress`1 progress, CancellationToken cancellationToken) in /home/runner/work/MESS/MESS/MESS/MESS.Services/Files/WorkInstructions/WorkInstructionFileService.cs:line 209

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No fields configured for Bug.

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions