I was setting User Profile Service Applcation for Active Directory direct import into SharePoint 2013 and got the following error in the log.
Microsoft.Office.Server.UserProfiles.UserProfileApplicationNotAvailableException: UserProfileApplicationNotAvailableException_Logging :: UserProfileApplicationProxy.ApplicationProperties ProfilePropertyCache
I have come across lot of blogs which say to give permissions to the account in Service application properties. Though the account we uses has the permissions we still could not get this resolved. It turned out to be the timer job windows service account which is being incorrectly set. Once we fix the timer job account, we are able to quickly import profiles from Active Directory successfully.