drawio-desktop
drawio-desktop copied to clipboard
Error - Invalid File Data
Describe the bug I'm getting invalid data file error on opening a file. I have been working on a very complex diagram with auto save enabled. Unfortunately my PC lost power somehow and after turning on, the file (attached as zip below) is not opening. It gives the "Invalid file data" error. sequence2.zip
Screenshots
- draw.io version 20.2.3
- OS: Windows
PS: I'm a student and devoted significant amount of time working on it and can't redo all the work again.
Hi,
We keep two hidden recovery files next to main file (.$FILENAME.bkp and .$FILENAME.dtmp). These file should include an older version of the main file.
The exact same issue as @lightify97. See screenshot
- macOS Big Sur
- diagrams.net 20.2.3 (latest version at time of writing this comment)

Checking the recovery files now to see what got saved. Thanks for the suggestion @mararad
Es de gran ayuda sincronizar la carpeta donde estás guardando tus archivos .drawio con algún tipo de nube (en mi caso GDrive), a pesar de tener los archivos de respaldo (.bkp y .dtmp) me seguía surgiendo el error (Invalid File Data). Busqué en la papelera de reciclaje de la nube, filtré los archivos por fecha de eliminación y encontré, por suerte, el último archivo de respaldo antes de tener el archivo corrupto, lo descargué y funcionó, además de tener todos mis diagramas como los había dejado
Espero les pueda servir de ayuda 😁
I met same problem too,so upset! bakfile not complete,file size turn to 0 kb. mybe I need redo it.
Hi, make sure that the file encoding is UTF-8
I went through the same problem and after debugging I found that it could not detect the encoding, in my case it had UTF-8 BOM and I changed it to UTF-8 and it worked correctly.
Your sequence2.drawio file is ANSI encoded, and full of null characters, it is unrecoverable.
Moving to https://github.com/jgraph/drawio-desktop/issues/1366