Visio cannot open the file because corrupt

Table of Contents

  • 1 How do I fix a corrupt Visio file?
  • 2 Why is my Visio file corrupt?
  • 3 How do I restart Visio?
  • 4 Where are the auto recovery files stored for Visio 2016?
  • 5 What causes a Visio file to be corrupted?
  • 6 Why is Visio 2016 not open in Windows 10?

How do I fix a corrupt Visio file?

General troubleshooting methods

  1. Start Visio.
  2. On the File tab, click Options, and then click Trust Center.
  3. Click Trust Center Settings, and then click Disable all macros without notification.
  4. Click Add-ins.
  5. Click to select the Disable all Application Add-ins check box.
  6. Click OK.
  7. Exit Visio, and then restart Visio.

Why is my Visio file corrupt?

Microsoft Visio file corruption can be repaired using a variety of methods. You can disable the all macros and disable the add-ons. These macros and add-ons could be the culprit causing the problems. You can also reformat the file as an XML drawing and as a VSD drawing.

How do I restore a Visio diagram?

Choose “Info” and choose to “Manage Document”. Now, select the option “Recover Unsaved Documents”. Choose the needed file and select “Open” to recover.

How do I unprotect a shape in Visio 2016?

Select a shape in your drawing. On the Developer tab, in the Shape Design group, click Protection. Select the shape attributes that you want to lock, or clear the check boxes for the attributes you want to unlock, and then click OK.

How do I restart Visio?

More Information

  1. On the Tools menu, click Customize.
  2. Click the Toolbars tab.
  3. In the Toolbars list, click Menu Bar. Do not clear the Menu Bar check box.
  4. Click Reset. Visio displays the Reset Toolbar dialog box with the following message:
  5. Click OK.
  6. Click Close.

Where are the auto recovery files stored for Visio 2016?

The AutoRecover. ini file is created in the following folder: %userprofile%\Application Data\Microsoft\VisioThe AutoRecovery file that is created keeps information about the drawing files that are opened by an instance of Visio.

Where do unsaved Visio files go?

When you have autosave activated, Visio will save the files in this dir: C:\Users\”your user”\AppData\Local\Temp.

How do I change a layer in Visio?

You can add new layers to organize custom categories of shapes, and then assign shapes to those layers.

  1. On the Home tab, in the Editing group, click Layers, and select Layer Properties.
  2. In the Layer Properties dialog box, click New.
  3. Type a name for the layer, and then click OK.

What causes a Visio file to be corrupted?

A sudden system shut down due to an unintentional power surge when working on MS Visio files occurs in data loss. A critical virus attack on the system sometimes results in the corruption of Visio files. Partition enclosing Visio files may be Unintended formatted.

Why is Visio 2016 not open in Windows 10?

After installing both ADTD and Microsoft Visio 2016 on Windows 10, when the tool tried to create the diagrams, the following error occurred. You are trying to open a file type (Visio 2000-2002 Binary Drawings), Templates and Stencils, which has been blocked by your File Block settings in the Trust Center.

How to recover a 2016 Visio file?

Visio abruptly closed my file without saving it, but the Visio program remained running. Most of my work in that file was lost. My question is, where are the auto-recover files located so that I can recover my work?

What are the error messages in Visio office?

“An error (100) occurred during the action Open” “Visio cannot open the file because it’s not a Visio file or it has become corrupted.” “Out of memory” error messages or error messages that indicate low system resources

Post navigation

Hi everyone,

I cannot open only just this one file.

I keep getting a message that 'Visio cannot open the file or a component in the file because it is corrupt'.

I've tried so many ways but still, the problem persists. Such as disabling and enable macro and zip and unzip the file.

Can anyone help me out? Really need this files back. Thank you.

After upgrading a number of systems to Visio 2016, I started to hear more and more about old pre-2010 Visio files in VSD format that would no longer open and would throw the following error:

Visio cannot open the file because corrupt

The strange thing was that the files were still launching without issue for users who were still on Visio 2010 and 2013.  The consensus as I searched around the Internet was that the older VSD files often had too many shaped embedded in them, and the fix was to open them in Visio 2010 or 2013, go through a process of removing unused shapes, and then saving in VSDX format.  Saving the file in the new format without removing the shapes would not resolve the issue.

I worked for a few hours on finding ways to be able to do this in newer versions of Visio, but never came up with a solution.  Instead, I found pieces of random VBScripts online where people were doing similar things, and then assisted users in converting these documents to the newer formats in bulk by writing a PowerShell script that essentially did what others were either doing manually or with VBS.  While I normally like to references my sources in my blog posts, unfortunately I didn't bookmark the page where I found the most useful information about the Visio COM - so apologies to that author if he ever happens across this post.

The following script is not pretty.  It was a rush job to get a large number of users whom I'd just upgraded working again quickly.  I often pretty up my code before posting, but this time I'm giving it to you the way I originally wrote it.  You're welcome to use it, modify it, redistribute it, and perhaps even make it a little nicer yourself.  As with all code you find online, backup your original files first, and always run in test before ever using on anything in production.

1$vsdPath = "C:\temp\Visio2010\2010" 2 3$visio = New-Object -ComObject Visio.Application 4 5If(-Not (Test-Path "$vsdPath\Fixed" -ErrorAction SilentlyContinue)) { 6 New-Item -ItemType Directory -Path "$vsdPath\Fixed" -ErrorAction Stop | Out-Null 7} 8 9Get-ChildItem $vsdPath | Where-Object { $_.Name -like "*.vsd" -and !(Get-ChildItem "$vsdPath\Fixed\$($_.Name)" -ErrorAction SilentlyContinue) } | % { 10 11 $fileName = $_.FullName 12 13 Write-Host "Processing $fileName" 14 15 $document = $visio.documents.open($fileName) 16 17 $objectsToDelete = @() 18 19 ForEach($master in $document.masters) { 20 21 $bThisShapeInUse = $false 22 23 ForEach($page in $visio.ActiveDocument.Pages) { 24 25 ForEach($shape in $page.shapes) { 26 27 if($shape.Name -eq $master.Name) { 28 $bThisShapeInUse = $true 29 } 30 } 31 32 } 33 34 if($bThisShapeInUse -eq $false) { 35 $objectsToDelete += $master.Name 36 } else { 37 "Keeping $($master.name)." 38 } 39 40 } 41 42 Write-Host "Time to delete!" 43 44 if($objectsToDelete) { 45 $($document.Masters | Where-Object { $_.Name -in $objectsToDelete }).delete() 46 } 47 48 $document.SaveAs("$vsdPath\Fixed\$($_.Name)") 49 $document.Close() 50 51} 52 53$visio.Quit()



How do I open a VSD file in Visio?

vsdx ★ Supported versions: 2007, 2010, 2013, 2016 Once you've installed the extension, you can: ★ Open Visio files from your computer: Click the Lucidchart icon on your toolbar and select “Choose file”, or drag and drop your Visio file onto the page.

Does Visio have auto recovery?

To turn on the AutoRecovery option, follow these steps: On the Tools menu, click Options. Click the Save tab, and then click to select the Save AutoRecovery info every check box. In the minutes box, type the interval that you want between AutoRecovery save operations, and then click OK.

Can Visio Viewer 2016 Open VSDX files?

Visio Viewer 2016 can open Visio drawings (. vsd files) saved in Visio 2000, 2002, 2003, 2007, 2010, 2013, and 2016. Visio Viewer 2016 can also open Visio XML drawings (. vdx files) saved in Visio 2002, 2003, and 2007.

Can Visio 2010 Open VSDX files?

You can open . vsdx and . vsdm files in Visio 2010. You are prompted to download the Visio Compatibility Pack when you open a .