The Outlook data file was not closed correctly. Recovering a document using Word Recovery


You can use the Inbox Repair Tool (SCANPST). EXE) to diagnose and correct errors in the file Outlook data. The Inbox Repair tool checks the data files on your computer to see if they are in good shape.

You can use the Inbox Repair tool in the following situations:

    I received a message that Outlook can't open the data file

    You receive a message that Outlook can't open a set of folders

    You think your Outlook data file may be damaged

If you are using an account Email Exchange, you can delete the Outlook Offline Data (OST) file, and Outlook will recreate the Outlook Offline Data (OST) file the next time you start Outlook.

Notes:

Recovering Outlook Data File (PST)

What happens after recovering an Outlook data file?

In the folder area you can see a folder named Recovered personal folders, in which they are located standard folders Outlook or folder Lost and Found. Some of the recovered folders may be empty. Folder Lost and Found contains all the recovered folders and items that Outlook can put back where they were before.

Creating a new data file

You can create new file data _z0z_ and drag items in the "lost" folder And"found" to a new data file. After moving all the items, you can delete the recovered PST file personal folders, including folder lost and found. To create a new Outlook data file, see Create an Outlook data file.

Recovering items from a backup .bak file

If the original Outlook data file is open, you may be able to recover additional elements. The Inbox Restore tool creates a backup file with the same name as source file, but with the BAK extension, and saves it in the same folder. You can try restoring items from a backup file that the Inbox recovery tool couldn't restore.

Finding Outlook Data Files

You can check the location of Outlook data files in Outlook.

    Select file> Setting up accounts> Setting up accounts.

    Go to the tab data files.

    All Outlook data files (PST) and offline data files (OST) are listed along with the name account, which the files are associated with.

Windows file server administrators are often faced with the need to force close files, open by users. This problem arises when several users work with one file at the same time. Often when incorrect operation Software or incorrect termination of the session by the user, files in network folder are open and locked, and other users cannot make changes to it. In this article we will show how to get a list of open files on file server, find out which users are using them, and how to reset these file sessions.

List open files on a Windows file server

List of files opened by users on the file Windows server can be obtained using a standard graphical console Computer Management(Computer Control - compmgmt.msc).

Launch the Computer Management console on the file server (or connect to it remotely using the console from your computer) and go to the section System Tools -> Shared Folders -> Open files(Utilities -> Shared folders-> Files open). The right side of the window displays a list of server files opened remotely. The list contains the local path to the file, the user account name, the number of locks, and the mode in which the file is opened (Read or Write+Read).

The same list of open files can be obtained using the built-in console utility Openfiles. For example, using next command you can get the session id, username and full local path to the open file:

Openfiles /Query /fo csv |more

At remote access user to a folder or file in a network folder (SMB) on the server, a new session is created for the user, defining this connection. User connections are managed through these session identifiers.

The same command can be executed remotely, for example, you need a list of open files on the mskfs01 file server:

Openfiles /Query /s mskfs01 /fo csv

The Openfiles team has another interesting feature for viewing a list of locally open files. To use it, you need to enable the Maintain Objects List option using the openfiles /local on command and reboot the server. After this, the list will begin to include files opened by local processes (it is advisable to use this mode only for debugging, as it may negatively affect server performance).

How to determine which user opened a file

To determine the user who opened (locked) the file cons.adm on the server, run the command:

Openfiles /Query /s mskfs01 /fo csv | find /i "cons.adm"

Key /i used to perform case-insensitive searches

Naturally, you can specify only part of the file name. For example, we need to find out who opened xlsx file, whose name contains the string farm, we will use the following pipeline:

Openfiles /Query /s mskfs01 /fo csv | find /i "farm"| find /i "xlsx"

You can, of course, find the file in the Computer Management graphical console, but this is less convenient (the console does not provide a search option).

How to close an open file

To close open file, you need to find it in the list of files in the Open File section and in context menu select " Close Open File».

If there are hundreds of open files on the file server, finding them in the console will not be easy. It is more convenient to use the utility Openfiles. As we already said, it returns the session ID of the open file. It is based on this session ID that the file can be forcibly closed by resetting the connection. Find the ID of the required file:

Openfiles /Query /s mskfs01 /fo csv | find /i "farm"| find /i ".xlsx"

We disconnect the user from it using the received identifier:

Openfiles /Disconnect /s mskfs01 /ID 67109098

How to remotely close open files using PowerShell

IN Windows Server 2012 / Windows 8 cmdlets for working with shares and files on an SMB server appeared in PowerShell. These cmdlets can be used to remote reset connections to an open file.

The list of open files can be obtained using the Get-cmdlets SMBOpenFile, and close the file (reset the connection) using Close-SmbOpenFile.

So, let's connect to the remote server:

$sessn = New-CIMSession –Computername mskfs01

Find and close the open pubs.docx file with one command:

Get-SMBOpenFile -CIMSession $sessn | where ($_.Path –like "*pubs.docx") | Close-SMBOpenFile -CIMSession $sessn

Confirm closing the file by pressing Y.

To remove confirmation of forced file closure on the server, use the -Force switch

The same commands can be used, for example, to close all files opened by a certain user (the user went home and did not free the files). For example, to reset all file sessions for the user ipivanov, run

Get-SMBOpenFile -CIMSession $sessn | where ($_.ClientUserName –like "*ipivanov*")|Close-SMBOpenFile -CIMSession $sessn

Unfortunately, even latest versions"Office" periodically does not work correctly. An error when opening a Word file can occur at the most unexpected moment, even if just a couple of minutes ago you were calmly working with the document. And everything would be fine, but what if it contains important and valuable information? Let's consider possible reasons problems and ways to recover such files.

Why does the error occur?

When you try to open a document, you will see a notification on the screen stating that the application cannot read the file because it is damaged. Let's say right away: this can happen even if you didn't do anything with the document and worked as usual. Typically, something from this list happens:

  1. The document contains a large number of tables, figures and formulas. An error when opening a Word file may occur if for some reason the codes of these elements were written incorrectly (in other words, the program cannot understand what needs to be shown at all).
  2. Problems related to various elements formatting. For example, with those that were created using additional applications and add-ons on another computer.
  3. The file was saved incorrectly (in the wrong format).

By clicking on the "Details" button, you can get more accurate information - at which point in the document (line and column numbers) there are problems. True, this will be of little help to inexperienced users. Therefore, let’s immediately move on to how you can open a damaged text file.

Restoring a document using Word

Few people know that the Microsoft text editor itself has a function for fixing damaged files. Therefore, if there is Word error When you try to open a file, you should first try to restore the document standard means. What do I need to do?

  1. Close the error message window.
  2. Launch Word from the Start menu or using a shortcut on the Desktop.
  3. Go to the menu File > Open and find through "Explorer" the document that needs to be restored. Please note that you do not need to open it!
  4. Select the file.
  5. Find the arrow button at the bottom of the window, near the "Open" button.
  6. A drop-down list will appear on the screen. IN in this case We are interested in the "Open and restore" item.

Now, if everything is fine, the document will open and display in standard mode.

An important nuance: you will also see a message on the screen stating that some changes were made to the content during the recovery process. By clicking on the "Show corrections" button, you will see a list of changed elements. Be sure to look at what the program has corrected so that you can manually correct the file later.

Recovering with a Backup Converter

It's great if you have this small utility installed on your computer. This means that when a document is saved in memory, it is also created backup copy. And now we will try to extract the undamaged version of the document:

  1. Launch the editor from the Start menu.
  2. Select from menu File > Open.
  3. At the bottom of the window that opens there will be a list of “File types” (to the left of the “Cancel” button). Click on the arrow and open a list of all options.
  4. If the converter is installed, you will see the line "Recover text from any file (*.*)".
  5. Select this option and try opening the required file again.

If there is an error when opening Word file 2003 (or other version) has disappeared, the document will open. However, the next time you start, you may receive the message "The table in the document is corrupted." To fix this, you need to highlight the problematic fragment, and then select from the menu Table > Convert > Table to Text.

If errors occur even after this, check all the tables in the document and see if there are any cells or rows that contain too much large text. Problems can also arise if there is an incomplete table in the document.

Changing Protected View Settings

Let's consider another option. It may work if the program does not open a Word file that was downloaded from the Internet. The system automatically blocks the launch of documents that it considers potentially dangerous. You can disable protection in the following way:

  1. Launch Word and go to the menu File > Options.
  2. In the window that appears, the main tabs are located on the left. We need the "Trust Center" section.
  3. In the "Center" go to the "Protected View" tab.
  4. Uncheck all the boxes responsible for opening documents in restricted mode.
  5. Save the changes, restart the program and try opening the file again.

This method should be used with caution, and only if you are 100% sure that the file is safe.

Removing Microsoft Word add-ins

Sometimes the problem is not with a specific document, but with the program in general. In practice, an error when opening a Word file often occurs due to installed add-ons. In this case, the message “The program has stopped working” is displayed on the screen.

Our task is to disable all add-ons, including the one that causes errors. To do this you need:

  1. Launch MS Word. Most likely, there will be a message on the screen stating that during last launch a serious error has occurred and the program will prompt you to start the editor in safe mode. Click "OK".
  2. Go to the menu File > Options.
  3. Go to the "Add-ons" tab.
  4. At the bottom of the window you will see "Manage: COM Add-ins". Click on the "Go..." button next to it.
  5. In the window that appears, you need to check the boxes next to all add-ons, then click “Delete” and confirm the action.

After this, you need to close the program and try opening the problematic document again.

Format recovery

In many cases, the error when opening a Word 2003-2013 file is due to incorrect saving. To open the document, you will have to restore the correct format.

Let's try to transfer the working information to a new, undamaged document:

  1. Create a new one in Word empty file and save it.
  2. Close the program and go to Explorer.
  3. Find the created file and turn it into an archive by changing the extension (to do this, you just need to rename the document and enter .zip instead of .doc).
  4. The same must be done with the file you want to recover.
  5. Open documents using any archiver.
  6. Remove the "word" folder from the damaged document and copy it into the archive with a new document, replacing all files.
  7. Rename the file from .zip to .doc or .docx back.

Now try opening the document in Word. The program will display a message stating that it is damaged and offer to restore it. After this, the contents of your file will be displayed on the screen.

Manual code editing

Let us immediately note that this option is suitable only for advanced users, at least with basic knowledge HTML. When a Word error occurs when trying to open a file, the message about it always contains information about which part of the document the problem is in (line and column number). That is, if you get into the file code, you can find and fix or delete this fragment. How to do it?

  1. Open the document as an archive (see previous paragraph).
  2. Find and extract
  3. Open the document in Notepad or Notepad++. It is advisable that text editor tracked the cursor position - showed row and column numbers.
  4. Find the fragment that is causing the error and edit it.
  5. Upload the updated document.xml into the archive instead of the old file. After that, open the document in Word.

It is important to understand the essence of the problem here. Most often this is the wrong order of tags in the code. As a last resort, you can delete part of the text.

Recovering a document using Word Recovery

In addition to Office tools, you can use special programs for correction text files. They use their own information extraction algorithms, so they can often do a much better job standard tools. The most popular apps this type is R-Word and Magic Word Recovery.

Before you start fixing a broken file, be sure to make a copy of it.

If you can't restore the document in its native format (.doc or .docx), first try saving it as .rtf.

Sometimes when restoring a table, a warning appears on the screen that the computer is low on memory. In this case, you need to close all programs, folders and files, except Word itself.

I was looking at my work calendar when Outlook 2010 suddenly reported an error and closed. After restarting, it was unable to open the OST file, and today I will tell you how I solved this problem in three minutes.

When launching the program, it gave the following error:

At work, I have an OS and programs with an English interface, so I will provide the equivalent error text from the Russian version of Office.

Exited Microsoft Outlook without properly closing the Outlook data file. You need to restart Microsoft Outlook. If the error persists, contact support.

The message was not very informative, but the launch mail client in safe mode by holding down Ctrl key, didn't change anything.

I opened the program folder and launched the diagnostic utility scanpst.exe. She couldn't fix the problem, but she gave a specific direction to search.

The essence of the message was that the OST file was occupied by some other application, which was an obstacle for Outlook. Have you already guessed which utility I launched next?

This solved the problem! Mail program started up fine and I was back to work.

What to do if your webcam is being used by another application

In the comments, reader Igor asked if it was possible to use Process Explorer to determine which application is using the webcam. Yes, the process is similar, but you need to look for:

I know that Unlocker exists, but I still had to download it, and Process utility Explorer was at hand. Moreover, the morality of the recording is not only in these two programs. After all, before using them, it was necessary to find the cause of the problem.

Upd. 11-Mar-13. I would like to supplement the note with points that emerged in its discussion:

  • If you don't have anything at hand, you can try to rename the file. Explorer can suggest a program that uses it.
  • In Windows 7 and higher, you can use the built-in Resource Monitor (resmon) program, where there is a search for descriptors on the CPU tab.
  • Utility






2024 gtavrl.ru.