I'm Trying to start User Profile Synchronization Service on a Sharepoint 2013 system but it does not and it reports the following error in ULS:
UserProfileApplication.SynchronizeMIIS: Error updating users with FIM permissions: System.Runtime.Serialization.SerializationException: There was an error deserializing the object . String was not recognized as a valid DateTime. ---> System.FormatException: String was not recognized as a valid DateTime. at System.DateTime.Parse(String s, IFormatProvider provider, DateTimeStyles styles) at Microsoft.ResourceManagement.Utilities.DateTimeSerializer.ReadCoordinatedUniversalTimeStringIntoCoordinatedUniversalDateTime(String input) at Microsoft.ResourceManagement.WebServices.Client.Resource.ResourceSerializer.ProcessElement(XmlDictionaryReader reader, Boolean& readerAdvanced) etc...
The message "String was not recognized as a valid DateTime" has pointed me to some solutions, one of which here on Stack Exchange (User Profile Synchronization Service won't start String not recognized as DateTime) but none seem to work for me. It looks like a problem related to the Regional/Locale settings. When I run PowerShell as the Farm managed user and execute Get-Culture and GetSystemLocale, I get the following output:
PS C:\Users\myusername> Get-WinSystemLocale LCID Name DisplayName ---- ---- ----------- 1033 en-US English (United States) PS C:\Users\spsadminp> Get-Culture LCID Name DisplayName ---- ---- ----------- 1040 it-IT Italian (Italy)
while if I run them "as administrator" with my usual user I get:
PS C:\Windows\system32> Get-WinSystemLocale LCID Name DisplayName ---- ---- ----------- 1033 en-US English (United States) PS C:\Windows\system32> Get-Culture LCID Name DisplayName ---- ---- ----------- 1033 en-US English (United States)
Does this error depend on the Region settings? If so, What are the correct settings I should use to get it working? Is the DB involved in the error? (in this case, what errors should I look for?)
Is there something else I could try to get the User Profile Sychronization Service started? Please comment if further detail is needed.