drawio-desktop icon indicating copy to clipboard operation
drawio-desktop copied to clipboard

Error - Invalid File Data

Open lightify97 opened this issue 2 years ago • 4 comments

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 Screenshot 2022-08-16 002524

  • 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.

lightify97 avatar Aug 15 '22 19:08 lightify97

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.

mararad avatar Aug 16 '22 11:08 mararad

The exact same issue as @lightify97. See screenshot

  • macOS Big Sur
  • diagrams.net 20.2.3 (latest version at time of writing this comment)
Screen Shot 2022-08-28 at 1 41 28 PM

Checking the recovery files now to see what got saved. Thanks for the suggestion @mararad

dbishoponline avatar Aug 28 '22 20:08 dbishoponline

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 😁 si

LuisAngelLibreros avatar Jan 28 '23 19:01 LuisAngelLibreros

I met same problem too,so upset! bakfile not complete,file size turn to 0 kb. mybe I need redo it.

yelinlan avatar Feb 01 '23 04:02 yelinlan

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. image

Your sequence2.drawio file is ANSI encoded, and full of null characters, it is unrecoverable.

federicoch avatar Jun 20 '23 02:06 federicoch

Moving to https://github.com/jgraph/drawio-desktop/issues/1366

davidjgraph avatar Jul 05 '23 20:07 davidjgraph