Where is the Contacts data file kept?

After installing Sierra, my husband's iMac lost his Contacts. Does anyone know where the data file is hiding?

iMac (21.5-inch, Late 2013), macOS Sierra (10.12), 8gb

Posted on Nov 18, 2016 1:27 PM

Reply
19 replies

Nov 18, 2016 1:50 PM in response to DarleenMB

It's not hiding. It is located in /Home/Library/Calendars/ folder.


Four Ways to Make the Home/Library Folder Visible


A. This method will make the folder visible permanently. Open the Terminal application in the Utilities folder and paste the following red colored command line at the command prompt: chflags nohidden ~/Library then press RETURN.

B. Click on the Desktop, press the Option (⌥) key, select Library from the Finder's Go menu.

C. Select Go To Folder from the Finder's Go menu. Paste the following in the path field: ~/Library and click on the Go button.

D. In Sierra activate the Finder, press COMMAND-J, set Finder display to Icon view if it is in some other view mode, select your Home folder from the sidebar, check the box labeled, "Show Library Folder.


User uploaded file

Nov 20, 2016 8:18 AM in response to DarleenMB

First, are you certain it is not an iCloud account?


Back up the AddressBook folder to somewhere else.

Then, delete the AddressBook Folder.

Open Contacts then close it (it should just populate with a single Apple contact, I think).

Go back into the AddressBook folder and replace the metadata and Images folders with the ones in your backup.

Delete all three of the addressbook-v22.abcddb files.

Open Contacts.

Dec 10, 2016 6:51 AM in response to DarleenMB

DarleenMB wrote:


I finally tried this. Still nothing. I don't understand why the Address book cannot find the contacts as the data is obviously all there.

Neither do I. The only thing I can think of is that the format of the metadata files has changed. I thought they were vCard files in the past, but now they are xml files. I don't think that should change the re-indexing, but it does prevent you from Double-clicking one to have it import. It will just open Contacts and not do anything with the file like it does with a vCard file.


With Contacts Open, make a Contacts Archive from the File Menu.

When it finishes exporting, first make sure the contacts are still in the metadata. Right-click on the .abbu file and choose Show Package Contents. It should look like a copy of the AddressBook folder. Look in the metadata folder and make sure the cards are all in there.

If they are in the metadata folder, you can try double-clicking on the abbu file which should then ask to replace the contents of Contacts. However, I don't think that will work as it will just restore the empty database.


Can you confirm that the .abcdp files are in the metadata folder directly inside of the AddressBook folder and not in a subfolder of Sources.


Make sure you still have the original backup of the AddressBook folder.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Where is the Contacts data file kept?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.