Visio Guy

Visio Discussions => General Visio => Topic started by: alk on August 19, 2020, 05:51:51 AM

Title: corrupt file!
Post by: alk on August 19, 2020, 05:51:51 AM
Can anyone hellp, all my backups of a file seem to be corrupted, I get two messages:
-This file cannot be opened because it is corrupt.
-Visio internal error:#2131 Action 1283:Open File
Is there any way to save my many hours of work!!! :'(
Title: Re: corrupt file!
Post by: Paul Herber on August 19, 2020, 08:26:17 AM
Here is a very recent thread:
http://visguy.com/vgforum/index.php?topic=7166.msg41134;topicseen#msg41134 (http://visguy.com/vgforum/index.php?topic=7166.msg41134;topicseen#msg41134)

Title: Re: corrupt file!
Post by: alk on August 19, 2020, 09:59:57 AM
Thanks Paul, I tried that option and for some strange reason I am not able to duplicate it, when I rename to abc.vsd.zip and try open the zip I get a message, unable to do the operation.
Perhaps I am doing something wrong or mis-understanding the instructions...any chance you can 'spell it out for me'.
Both zip and rar options don't seem to work as indicated in the instruction.
Title: Re: corrupt file!
Post by: Paul Herber on August 19, 2020, 10:05:00 AM
Ah, vsd format files are different, not at all similar to .vsdx, so won't work. Should have asked earlier, what version of Visio?
Title: Re: corrupt file!
Post by: alk on August 19, 2020, 10:13:36 AM
What is your opinion, does this mean that my file is lost forever, and I should take a strong cup of coffee and just accept my fate and rework the file [which will take me about a day]?
Title: Re: corrupt file!
Post by: Paul Herber on August 19, 2020, 10:21:14 AM
Can you email me the file?
paul@paulherber.co.uk
Title: Re: corrupt file!
Post by: alk on August 19, 2020, 10:29:47 AM
Ooi that is problematic for me, since I work in the field of intellectual property, my clients would not appreciate it.
I think the best I can do is screenshare via skype or google hangouts
kirschner.aryeh.leib or draw4ip@gmail.com and your could guide me.
Title: Re: corrupt file!
Post by: Paul Herber on August 19, 2020, 10:55:04 AM
Sorry, don't do them!
Title: Re: corrupt file!
Post by: vojo on August 19, 2020, 12:03:50 PM
paul...you sure vsdx versions of visio cant open vsd version?   e.g. Visio 2019 or 2013 can digest a VSD diagram.

When I upgraded from 2003 to 2013, I had no problem reading VSS stencils and saving them as VSSX stencils.
I have opened VSD files (old files from 20 years ago) but I have not tried to save them in VSDX.
Title: Re: corrupt file!
Post by: alk on August 19, 2020, 12:07:26 PM
I have found a viable solution which is working '95%'!!! The corrupted vsd file will open in LibreDraw and then it is just a matter of cut and past and fix fonts, hurray!
Title: Re: corrupt file!
Post by: vojo on August 19, 2020, 12:10:38 PM
also could try one last thing.

Might want to get a hex editor and open corrupt file and 2 good files and compare bytes.
For example, an address range in the 2 good files ===> that value should be the same in the corrupted file.
first 1K ==> all the setup header info..my guess, but beyond first 1000 bytes are drawing specific.

if VSDX, Notepad++   is pretty good at parsing XML
Title: Re: corrupt file!
Post by: vojo on August 19, 2020, 12:13:40 PM
RE libredraw

If the diagram is static and not too busy (few shapes, no smart shapes, control handles, properties)...it will work great
if diagram is complex and dynamic, you should check behaviors if you are copying and pasting.

To me at least, the issue is in metadata....something there visio does not like but Libra draw may not care about.
Title: Re: corrupt file!
Post by: Paul Herber on August 19, 2020, 12:31:24 PM
Quote from: vojo on August 19, 2020, 12:03:50 PM
paul...you sure vsdx versions of visio cant open vsd version?   e.g. Visio 2019 or 2013 can digest a VSD diagram.
Hi Vojo, I'm sure V2013/16/19 are quite capable of opening vsd files. Did I say otherwise?
Title: Re: corrupt file!
Post by: alk on August 19, 2020, 12:33:42 PM
I do not who or understand what or how things happened, are there any suggestions how I can prevent future upsets by having a backup, currenly I autobackup every time I restart my computer, so that I can backrack if I discover I have made a mistake. This time it did not work.
I can't accord to take a 'snapshot' of my work folder every hour or two, it will be too large...coreldraw has a autobackup of current files, but Visio does not?
Title: Re: corrupt file!
Post by: vojo on August 19, 2020, 05:35:37 PM
visio has auto backup of sorts (save every x minutes, crash file, etc)
Title: Re: corrupt file!
Post by: vojo on August 19, 2020, 05:38:43 PM
you probably could make simple VBA macro to save a copy of the file to a new location.
something like <file name> || 2020_08_19_13_38_03.vsdx
Title: Re: corrupt file!
Post by: alk on August 19, 2020, 06:34:41 PM
that does not work for me, sometimes I need to undo 30 operations, if I autosave in the middle then I lose my ability to undo the last 50 operations.
Title: Re: corrupt file!
Post by: vojo on August 20, 2020, 04:26:19 AM
I submit that is exactly one of the reasons you would want such a macro.

if you went down a "rat hole" that you need to undo 30 opps, then to be safe, you should problem save a copy and undo 31 opps.
(31 is save a copy off...undo would not delete the saved off copy).
This is because you may need to trace your actions because opp 19 thru 21 are of value.

Title: Re: corrupt file!
Post by: alk on August 20, 2020, 05:58:21 AM
Sorry, I am not understanding you. If you have a link to some information, please send.
Basically I think you are telling me to auto-backup and that it will not jeopardize my ability to undo 50 operation.
Title: Re: corrupt file!
Post by: vojo on August 20, 2020, 11:18:35 AM
basically, write some VBA that does this
1) open a new file
2) copy all data to that file
3) close new file
4) continue editing new file

The trick is getting security settings so anybody can run it.
I did this on an excel file,  the VBA was not obvious for the security aspect
(essentially, a check to enable VBA project and VBA execution).

I am  not fluent in VBA so I am sure somebody can help you better than me
(my stuff admittedly was a hack of VBA to do the job).
Title: Re: corrupt file!
Post by: alk on August 21, 2020, 09:39:09 AM
OK, I have experimented with autosave, it works fine, but sometimes it deletes all my UNDO history. Any idea how I can prevent this from happening?

Sometimes I make a mistake and cut and paste fig.1 and modify it as fig.2, then I realize I messed up fig.1, so I undo upto 100 operation to find my fig.1, if I save in the middle I loose my UNDO history?