Monterrey Mail app SQL Database error

error	03:11:41.103547+0000	Mail	SQLite error 19 (extended: 0) - constraint failed: inserting address
error	03:11:41.103634+0000	Mail	Nested database block failed on connection [<MFPersistenceDatabaseConnection_macOS: 0x600000e92b80> isWriter: YES, SQL connection: <EFSQLConnection: 0x600002acf260> sqlite handle: 0x13062a4a0]
error	03:11:41.103665+0000	Mail	[] SQLite error 19: inserting address
default	03:11:41.103683+0000	Mail	[] SQLite error 19: inserting address
default	03:11:41.324654+0000	Mail	Integrity check result: 0



The above error is non stop whenever Mail is running eating CPU, and it is all useless. Tried Rebuilding database on each account, OnyX, reinstalled MacOS, Disk repair, and turning off all mail accounts. Out of ideas :(


On Latest OS, M1 MBP

MacBook Pro 13″, macOS 12.1

Posted on Dec 27, 2021 7:18 PM

Reply
Question marked as Top-ranking reply

Posted on Jan 26, 2022 6:22 AM

Thank you for the tip, sorry for the late response, but I have been away, great news is that your solution has resolved my issue. While I couldn't identify which specific email message was the issue i deleted a bunch from around the date when the issue started to occur and it mail started functioning just fine. Thank you again for helping me sort this rather frustrating issue!

Similar questions

13 replies
Question marked as Top-ranking reply

Jan 26, 2022 6:22 AM in response to AngryBonk

Thank you for the tip, sorry for the late response, but I have been away, great news is that your solution has resolved my issue. While I couldn't identify which specific email message was the issue i deleted a bunch from around the date when the issue started to occur and it mail started functioning just fine. Thank you again for helping me sort this rather frustrating issue!

Jan 3, 2022 2:58 PM in response to BenceDavid

I have carried out a clean build using a virtual install of Monterey 12.1 - Exactly the same issue, with console showing continuous SQLite errors.


I have also tried my Mac running High Sierra, and that's fine.


Then I tried a build running Big Sur, and then a build of Monterey but this time 12.0.1 and both work perfectly well.


So definitely an issue with 12.1 and/or Apple's mail servers


I'll follow up my case with Apple, who have already shared my screen but were unable to help much other than say it might "fix itself" if I waited.

Dec 27, 2021 7:34 PM in response to BenceDavid

Tried Rebuilding database

It is failing to rebuild because it is trying to insert data that violates a table constraint.

Why it is failing it doesn't say.


Do you often run OnyX? It can cause lots of problems; many more than it can fix.


Create a new user account. Log into it and out of the old.

Set up an email account in the new user. Do you get the same problems on that user?

Dec 28, 2021 7:51 AM in response to BenceDavid

There is no data stored in an app, so I can't see how that would help. The sqlite database is self-contained and not part of the Mail app. But, I don't know what else is global across all users except Mail itself. Maybe it was corrupted on the upgrade.

Reinstalling the OS should replace that copy of Mail, so probably no need to go to the trouble to remove it--it cannot be removed easily as it is on a read-only volume.

Dec 30, 2021 9:01 AM in response to BenceDavid

I have exactly the same issue too, and it affects both my iMac and MacBook Pro. Both running Monterey 12.1 and seemingly only affecting my Apple iCloud email account. Which incidentally is fine via iOS, iPadOS and using web mail.


It begun just before Christmas, I contacted Apple Support, who acknowledged that they had suffered an issue with Apple iCloud email, but after remotely viewing my Mac and checking a few things, told me that the issue should resolve after a few days. It hasn't! So I will contact them again in the New Year.


I will try setting up another test Mac from scratch, and see if the issue remains on a clean build.

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.

Monterrey Mail app SQL Database error

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