Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ACAccountStore Error 5

When attempting to save an account into an ACAccountStore, I sometimes receive this error. Later, if I attempt to access this account, I find that it's actually been saved. So far, I've yet to find any information about this nondescript error. Does anyone know what it means?

Error Domain=com.apple.accounts Code=5 "The operation couldn't be completed. (com.apple.accounts error 5.)"

like image 644
Brandon Schlenker Avatar asked Jul 11 '12 16:07

Brandon Schlenker


2 Answers

This question is a little dated, but I'm struggling in the same area. Here's one thing that should help: I did find documentation on the error codes:

typedef enum ACErrorCode {
   ACErrorUnknown = 1,
   ACErrorAccountMissingRequiredProperty,
   ACErrorAccountAuthenticationFailed,
   ACErrorAccountTypeInvalid,
   ACErrorAccountAlreadyExists,
   ACErrorAccountNotFound,
   ACErrorPermissionDenied,
   ACErrorAccessInfoInvalid
} ACErrorCode;

I found this in the documentation under the Accounts.framework link.

Interpreting this gives error=5 being "Account already exists" and error=6 being "Account not found." I'm hopeful this makes the errors a little less "nondescript."

like image 191
Cubs Fan Ron Avatar answered Sep 18 '22 21:09

Cubs Fan Ron


This error occurs because you didn't set the Facebook account in the settings. The settings are available in iOS 6. Set that account and then try again.

Also give proper alert message on error.

like image 29
Ameet Dhas Avatar answered Sep 20 '22 21:09

Ameet Dhas