After Office2011 for mac is upgraded to Office2016 for mac, the Outlook mail index loss problem is solved

After Office2011 for mac is upgraded to Office2016 for mac, the Outlook mail index loss problem is solved

Office2011 for mac was installed in 2016. Microsoft no longer maintains this version. At the same time, in the process of using Outlook recently, I occasionally encountered CRASH, so I decided to upgrade to the new version. After searching around, the company has it. The official installation package of Office2016 for mac is downloaded from the company's document server.
I found the upgrade instructions, and the operation records are as follows:

1. Export Outlook emails, contacts, etc. to the archive file OLM;

2. Uninstall Office2011 for mac, delete applications, etc.;

3. Install Office2016 for mac;

4. Start Outlook2016 for mac, import the archive file OLM, and find that it is stored in a separate OLM directory after recovery, not in the regular inbox. This operation is quite strange and not very convenient;

5. After some inquiries, the mail data of Outlook2011 for mac is stored under "Documents/Microsoft User Data/Office 2011 Identities". I checked the size, and the size of the exported OLM file package is basically consistent, so Delete and clean up the imported OLM path, and then import it from "Documents/Microsoft User Data/Office 2011 Identities", and immediately return to the normal inbox;

7. But in the process of using, I found that the email search function is invalid. According to the sender search, I can only find the emails received after reinstallation. I can’t find the previous ones, and I feel that the email index is broken;

8. First find an mdimport index rebuild command and operating instructions, and assemble the command according to the instructions:
mdimport -g “/Applications/Microsoft Outlook.app/Contents/Library/Spotlight/Microsoft Outlook Spotlight Importer.mdimporter” -d1 “/ Users/ThomasLiu/Library/Group Containers/UBF8T346G9.Office/Outlook/Outlook 15 Profiles/Main Profile”
However, an error was reported during execution:
'-g' no longer supported. Importers may only be tested by installing them.
After some inquiries , it turns out that macOS Mojave10.14.6 no longer supports the -g option, WTF, what a mess

9. Continue to search, and accidentally see the following method instructions:
*Tip: This is an alternative method to rebuild the Outlook 2016 database in MAC:
a. Go to the following location:
* ~/Library/Group Container/UBF8T346G9.Office /Outlook/Outlook 15 Profiles/Main Profiles/Data
b. Move the Outlook.sqllite file to the desktop. (This will force Outlook to detect the problem and do an automatic rebuild).
c. After the rebuild is complete, open Outlook and perform a search.
d. If the search works, delete the "Outlook.sqllite" file from the desktop.

10. According to the above method, enter the /Users/ThomasLiu/Library/Group Containers/UBF8T346G9.Office/Outlook/Outlook 15 Profiles/Main Profile/Data path,
mv ./Outlook.sqlite /Users/ThomasLiu/Desktop/
reopen Outlook , Immediately there will be a prompt that needs to be repaired, and then start to repair, it will be completed in about 20 minutes, and then search the email, and it will be fine, this method is effective!

11. After Outlook2016 for mac mail search is effective, the "Documents/Microsoft User Data/Office 2011 Identities" used earlier can be considered to be cleaned up, first tar a copy: tar -cf office2011.tar "
Office 2011 Identities"
and then put the path Cleaned up:
rm -rf "Office 2011 Identities"
and ran Outlook2016 without any abnormalities, and then deleted the tar package.

12. Looking back, before uninstalling Office2011 for mac, the step of exporting the archive file OLM is a bit redundant. After uninstalling 2011 and reinstalling 2016, import it directly from "Documents/Microsoft User Data/Office 2011 Identities" (when importing, there is a prompt , select according to the prompts) to restore all.

Review and record the whole process for future reference. If you have any questions, please contact me.

Guess you like

Origin blog.csdn.net/weixin_43182179/article/details/103985210