<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Sajith Sudhakaran</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/sajiths/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/sajiths/feed.xml</link>
    <description>Powered by Passion..</description>
    <lastBuildDate>Wed, 17 Apr 2019 03:47:22 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>User Profile Synchronization service stuck in "Starting" state in SharePoint 2013</title>
      <link>https://docs.microsoft.com/archive/blogs/sajiths/user-profile-synchronization-service-stuck-in-starting-state-in-sharepoint-2013</link>
      <pubDate>Tue, 08 Mar 2016 12:18:28 GMT</pubDate>
      <dc:creator><![CDATA[Sajith Sudhakaran]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/sajiths/2016/03/08/user-profile-synchronization-service-stuck-in-starting-state-in-sharepoint-2013/</guid>
      <description><![CDATA[We know its hard to define what cause the user profile synchronization service not getting started...]]></description>
      <content:encoded><![CDATA[<p><span style="font-size:small;">We know its hard to define what cause the user profile synchronization service not getting started as there are plenty of reasons due to dependency when it dosnt start and might need a SharePoint log analysis to come to any conclusion. I was working on such a scenario where the user profile synchronization service was not getting started at customer environment and following was the exception from ULS when it failed.</span></p>
<p><span style="font-size:x-small;">02/19/2016 15:16:21.79&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OWSTIMER.EXE (0x259C)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x2D04&nbsp;&nbsp;&nbsp; SharePoint Portal Server&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; User Profiles&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 9sip&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; High&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UserProfileApplication.SynchronizeMIIS: Failed to configure MIIS post database, will attempt during next rerun. Exception: <span style="background-color:#ffff00;">System.Runtime.InteropServices.SEHException (0x80004005)</span>: External component has thrown an exception.&nbsp;&nbsp;&nbsp;&nbsp; at Microsoft.Office.Server.UserProfiles.Synchronization.ILMPostSetupConfiguration.<span style="background-color:#ffff00;">ConfigureMiisStage2</span>()&nbsp;&nbsp;&nbsp;&nbsp; at Microsoft.Office.Server.Administration.UserProfileApplication.SetupSynchronizationService(ProfileSynchronizationServiceInstance profileSyncInstance).&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; eadf609d-1937-f04a-6fd0-052797a13efb</span></p>
<p><span style="font-size:small;">The exception seems to be pointing to the custom PowerShell profile and I have learnt from customer that they configured custom PowerShell profile previously which they later removed. So to eliminate any chance of custom profile role in this issue, I had to rename\backup of the&nbsp;windows profile for the timer service account which we use to start the UPS.&nbsp;As you know it should be done by logging in to server using a different account and again login to server using the timer service account so that it will create a new and clean profile. This time the User Profile Synchronization service started like a champ.&nbsp;</span></p>
<p><span style="font-size:small;">Happy SharePointing!!!</span></p>]]></content:encoded>
    </item>
    <item>
      <title>Unable to configure 'Send to Connections' in SharePoint 2010</title>
      <link>https://docs.microsoft.com/archive/blogs/sajiths/unable-to-configure-send-to-connections-in-sharepoint-2010</link>
      <pubDate>Thu, 02 Jul 2015 14:29:34 GMT</pubDate>
      <dc:creator><![CDATA[Sajith Sudhakaran]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/sajiths/2015/07/02/unable-to-configure-send-to-connections-in-sharepoint-2010/</guid>
      <description><![CDATA[I was working on an issue where customer were unable to configure &#39;Send to Connections&#39; in...]]></description>
      <content:encoded><![CDATA[<p><span style="font-size:small;">I was working on an issue where customer were unable to configure &#39;Send to Connections&#39; in their SharePoint 2010 environment. I had a look at the ULS logs and it was throwing 401 exception.</span></p>
<p>w3wp.exe (0x3A94) 0x31A8 SharePoint Foundation General brz8 High Url validation failed for https://SiteURL/_vti_bin/OfficialFile.asmx during Record and document center connection configuration with exception The request failed with HTTP status 401: Unauthorized.: at <span style="background-color:#ffff00;">System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse</span>(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at Microsoft.SharePoint.OfficialFileSoap.GetServerInfo() at Microsoft.SharePoint.ApplicationPages.OfficialFileAdminPage.&lt;&gt;c__DisplayClass2.b__0() at Microsoft.SharePoint.SPSecurity.&lt;&gt;c__DisplayClass5.b__3() at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param) at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode) at Microsoft.SharePoint.ApplicationPages.OfficialFileAdminPage.IsValidUriToRouter(Uri uriToValidate) d5ff109d-0433-60a3-4840-479983a2a474&nbsp;</p>
<p><span style="font-size:small;">The Loopbackcheck were already disabled on the box and after a troubleshooting this issue for some time on their CA box I found the Windows credentials were configured to cache on the servers (Control Panel\User Accounts\Credential Manager). We were able to configure &#39;Send to Connections&#39; after removing the credentials from credential manager.&nbsp;</span></p>]]></content:encoded>
    </item>
    <item>
      <title>SSRS Reports timed out with '503' error | SharePoint 2013 |</title>
      <link>https://docs.microsoft.com/archive/blogs/sajiths/ssrs-reports-timed-out-with-503-error-sharepoint-2013</link>
      <pubDate>Thu, 02 Jul 2015 11:45:14 GMT</pubDate>
      <dc:creator><![CDATA[Sajith Sudhakaran]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/sajiths/2014/08/19/ssrs-reports-timed-out-with-503-error-sharepoint-2013/</guid>
      <description><![CDATA[I was working with a customer who&nbsp;has issue with SSRS reports which keeps in spinning for...]]></description>
      <content:encoded><![CDATA[<p></p>
<p><span style="font-size:small;"><span style="font-family:arial, helvetica, sans-serif;">I was </span><span style="font-family:arial, helvetica, sans-serif;">working with a custome</span><span style="font-family:arial, helvetica, sans-serif;">r who</span><span style="font-family:arial, helvetica, sans-serif;">&nbsp;has issue w</span><span style="font-family:arial, helvetica, sans-serif;">ith SSRS reports which keep</span><span style="font-family:arial, helvetica, sans-serif;">s i</span><span style="font-family:arial, helvetica, sans-serif;">n spinnin</span><span style="font-family:arial, helvetica, sans-serif;">g for around 2 minutes and end up with throwing following error in&nbsp;SharePoint&nbsp;2013 farm environment. But the normal reports are generating successfully which takes less than a minute to load.</span></span></p>
<p><span style="font-family:arial, helvetica, sans-serif;font-size:small;">&nbsp;</span></p>
<p><em>&quot;Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 503&quot;</em></p>
<p><em>&nbsp;</em></p>
<p><span style="font-size:small;">and you may see following time out exception &nbsp;in ULS Logs...</span></p>
<p><em>&nbsp;</em></p>
<p><em>08/15/2014 10:59:49.66* w3wp.exe (0x1130) 0x2C78 SharePoint Foundation Service Connections ev2x Verbose ...om the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout. ---&amp;amp;gt; System.Net.Sockets.SocketException: The I/O operation has been aborted because of either a thread exit or an application request at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted() at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs eventArgs) --- End of inner exception stack trace --- at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result) at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.End(IAsyncResult result) at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)&lt;/ExceptionString&gt;...</em></p>
<p><br /><em>08/15/2014 10:59:49.66* w3wp.exe (0x1130) 0x2C78 SharePoint Foundation Service Connections ev2x Verbose ...&lt;InnerException&gt;&lt;ExceptionType&gt;System.Net.Sockets.SocketException, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&lt;/ExceptionType&gt;&lt;Message&gt;The I/O operation has been aborted because of either a thread exit or an application request&lt;/Message&gt;&lt;StackTrace&gt; at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted() at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs eventArgs)&lt;/StackTrace&gt;&lt;ExceptionString&gt;System.Net.Sockets.SocketException (0x80004005): The I/O operation has been aborted because of either a thread exit or an application request at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted() at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Ob...</em></p>
<p></p>
<p></p>
<p></p>
<p><span style="font-size:small;">I had a deep drive in to research on this issue by making use of articles and my energetic lab and found this may due to the default timeout value in Request Management Service..</span></p>
<p></p>
<p></p>
<p><span style="font-family:arial, helvetica, sans-serif;font-size:small;">Basically, If the Request Management service is enabled, it manages all incoming requests by evaluating logic rules against the user requests in order to determine what\which action to take and which machine or machines (targets) in the farm should handle the request.</span></p>
<p><span style="font-family:arial, helvetica, sans-serif;font-size:small;">By default the Request time out value for Request Management service are as follows,</span></p>
<p><span style="font-family:arial, helvetica, sans-serif;font-size:small;">RequestTimeout&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: 00:01:40<br />RequestExecutionTimeout&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 01:00:00</span></p>
<p><span style="font-family:arial, helvetica, sans-serif;font-size:small;">So the error throws from&nbsp;RM service for those reports who take more than 1 minute to generate the report.</span></p>
<p></p>
<p></p>
<p><span style="font-size:small;">If you do not have any defined rules in Request management Service other than the by default value, you may keep stop the RM service in your farm. If you would like to keep the RM Service running, then go ahead and increase the time out value by making use of following PowerShell &nbsp;script.</span></p>
<p><span style="font-size:small;">&nbsp;</span></p>
<p></p>
<p><em>$waUrl = &quot;URLofWEbApp&quot;</em></p>
<p><em>$wa = Get-SPWebApplication $waUrl</em></p>
<p><em>$rmSettings = $wa | Get-SPRequestManagementSettings</em></p>
<p><em>$req=$wa.RequestManagementSettings</em></p>
<p><em>$timeout2= New-TimeSpan -minutes 5</em></p>
<p><em>$req.Requesttimeout=$timeout2</em></p>
<p><em>$req.update()</em></p>
<p></p>
<p></p>
<p><span style="font-size:small;">Happy Troubleshooting..</span></p>
<p><em>&nbsp;</em></p>
<p></p>
<p></p>]]></content:encoded>
    </item>
    <item>
      <title>Unable to open files from a specific folder from SharePoint Site. It throws 404 file not found message.</title>
      <link>https://docs.microsoft.com/archive/blogs/sajiths/unable-to-open-files-from-a-specific-folder-from-sharepoint-site-it-throws-404-file-not-found-message</link>
      <pubDate>Fri, 22 May 2015 17:04:14 GMT</pubDate>
      <dc:creator><![CDATA[Sajith Sudhakaran]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/sajiths/2015/05/22/unable-to-open-files-from-a-specific-folder-from-sharepoint-site-it-throws-404-file-not-found-message/</guid>
      <description><![CDATA[I was able to narrow down the issue to specific to a folder where all files throws 404 page cannot...]]></description>
      <content:encoded><![CDATA[<p>I was able to narrow down the issue to specific to a folder where all files throws 404 page cannot be found message. But the files from other folders in the same document library were accessible. In few minutes the plus sign (+) with in the folder name found in my eyes which differ this folder from others. (Example : Folder + name). I created a new folder with plus sign (+) in between the folder name and reproduced the issue.&nbsp;</p>
<p><span>Using the following characters anywhere in a site name, in a subsite name, or in a site or Active Directory group names are not supported:</span></p>
<p>Tilde (~)<br />Number sign (#)<br />Percent (%)<br />Ampersand (&amp;)<br />Asterisk (*)<br />Braces ({ })<br />Backslash (\)<br />Colon (:)<br />Angle brackets (&lt; &gt;)<br />Question mark (?)<br />Slash (/)<br />Plus sign (+)<br />Pipe (|)<br />Quotation mark (&quot;)</p>
<p>Ref:&nbsp;https://support.microsoft.com/en-us/kb/905231&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Users are being re-authenticates every around 5 minutes in SP 2013 web application where OKTA as SAML provider.</title>
      <link>https://docs.microsoft.com/archive/blogs/sajiths/users-are-being-re-authenticates-every-around-5-minutes-in-sp-2013-web-application-where-okta-as-saml-provider</link>
      <pubDate>Mon, 11 May 2015 17:16:00 GMT</pubDate>
      <dc:creator><![CDATA[Sajith Sudhakaran]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/sajiths/2015/05/11/users-are-being-re-authenticates-every-around-5-minutes-in-sp-2013-web-application-where-okta-as-saml-provider/</guid>
      <description><![CDATA[Recently I have gone through an issue where the end users are being required to re-authenticates to...]]></description>
      <content:encoded><![CDATA[<p><span style="font-size:small;">Recently I have gone through an issue where the end users are being required to re-authenticates to the web application in every 5 minutes or less in their SharePoint 2013 environment where they used OKTA as SAML provider. The re-authentication doesn&#39;t force to enter the credentials again instead we see there is a call to the _trust and to OKTA server for getting a valid cookie again. &nbsp;</span></p>
<p><span style="font-size:small;">By looking at the Fiddler I understand that the SAML token expiration value was 8:05 hrs.&nbsp;</span></p>
<p><span style="font-size:small;">Created xmlns:wsu=&quot;<a href="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd</a>&quot;&gt;2015-04-28T20:44:00.307Z&lt;/wsu:Created&gt;</span></p>
<p><span style="font-size:small;">&lt;wsu:Expires xmlns:wsu=&quot;<a href="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd</a>&quot;&gt;2015-04-29T04:49:00.307Z&lt;/wsu:Expires&gt;</span></p>
<p><span style="font-size:small;">Had a look at the STSConfiguration (Get-SPTrustedIdentityToekIssuer) and found the STS token expiration (LogonTokenCacheExpirationWindow) set to 2 minutes. This means the sliding session should be every 8:03 hrs, which means the client will try to re-authenticate with the SAML provider only every 8:03 hrs. &nbsp;</span></p>
<p><span style="font-size:small;">Basically&nbsp;the value of the&nbsp;LogonTokenCacheExpirationWindow&nbsp;property is always less than the SAML token lifetime; otherwise, you&#39;ll see a loop whenever a user tries to access your SharePoint web application and keeps being redirected back to the token issuer. Here are the details on sliding session and its logic: <a href="/controlpanel/blogs/posteditor.aspx/&lt;a%20href=&quot;https:/msdn.microsoft.com/en-us/library/hh446526.aspx&quot;%20title=&quot;https:/msdn.microsoft.com/en-us/library/hh446526.aspx&quot;&gt;https:/msdn.microsoft.com/en-us/library/hh446526.aspx&lt;/a&gt;&amp;nbsp;" title="https://msdn.microsoft.com/en-us/library/hh446526.aspx" target="_blank">https://msdn.microsoft.com/en-us/library/hh446526.aspx&nbsp;</a></span></p>
<p><span style="font-size:small;">So here the questions is why the users being authenticates very frequently? &nbsp;Customer already informed me that they played a lot with the values of DistributedLogonTokenCache parameters. I collected the SharePoint ULS logs in VerboseEx for an hour from their servers using Merge-SPLogFile command and found following,</span></p>
<p></p>
<p><span style="font-size:small;">-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Here the request started where the user tried to access a resource in SharePoint.</span></p>
<p></p>
<p><em>w3wp.exe (ServerName:0x057C)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x03C4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SharePoint Foundation&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Logging Correlation Data&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmnv&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Medium&nbsp;&nbsp; Name=Request (GET:https://SiteURL/_api/sp.userprofiles.PeopleManager/GetMyProperties)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 91d7039d-55e9-7036-63d4-13bd0943287a</em></p>
<p></p>
<p><span style="font-size:small;">-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Here the exception thrown on &lsquo;Distributed logon token cache&rsquo; complaining about the value of MaxBufferSize</span></p>
<p></p>
<p><em>w3wp.exe (ServerName:0x057C)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x03C4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SharePoint Foundation&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DistributedCache&nbsp;&nbsp;&nbsp;&nbsp; agyfv&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Unexpected&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="background-color:#ffff99;">Unexpected error occurred in method &#39;GetObject&#39; , usage &#39;Distributed Logon Token Cache&#39; - Exception &#39;Microsoft.ApplicationServer.Caching.DataCacheException: ErrorCode&lt;ERRCA0016&gt;:SubStatus&lt;ES0001&gt;</span>:The connection was terminated, possibly due to server or network problems or serialized Object size is greater than MaxBufferSize on server. Result of the request is unknown. ---&gt; System.TimeoutException: The socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout. ---&gt; System.IO.IOException: The read operation failed, see inner exception. ---&gt; System.TimeoutException: The socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout. ---&gt; System.Net.Sockets.SocketException: The I/O operation has been aborted because of either a thread exit or an application request&nbsp;&nbsp;&nbsp;&nbsp; at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()&nbsp;&nbsp;&nbsp;&nbsp; at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs eventArgs)&nbsp;&nbsp;&nbsp;&nbsp; --- End of inner exception stack trace ---&nbsp;&nbsp;&nbsp;&nbsp; at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)&nbsp;&nbsp;&nbsp;&nbsp; at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.End(IAsyncResult result)&nbsp;&nbsp;&nbsp;&nbsp; at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)&nbsp;&nbsp;&nbsp;&nbsp; --- End of inner exception stack trace ---&nbsp;&nbsp;&nbsp;&nbsp; at System.Net.Security.NegotiateStream.EndRead(IAsyncResult asyncResult)&nbsp;&nbsp;&nbsp;&nbsp; at System.ServiceModel.Channels.StreamConnection.EndRead()&nbsp;&nbsp;&nbsp;&nbsp; --- End of inner exception stack trace ---&nbsp;&nbsp;&nbsp;&nbsp; at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)&nbsp;&nbsp;&nbsp;&nbsp; at System.ServiceModel.Channels.TransportDuplexSessionChannel.EndReceive(IAsyncResult result)&nbsp;&nbsp;&nbsp;&nbsp; at Microsoft.ApplicationServer.Caching.WcfClientChannel.CompleteProcessing(IAsyncResult result)&nbsp;&nbsp;&nbsp;&nbsp; --- End of inner exception stack trace ---&nbsp;&nbsp;&nbsp;&nbsp; at Microsoft.ApplicationServer.Caching.DataCache.ThrowException(ResponseBody respBody, RequestBody reqBody)&nbsp;&nbsp;&nbsp;&nbsp; at Microsoft.ApplicationServer.Caching.DataCache.InternalGet(String key, DataCacheItemVersion&amp; version, String region, IMonitoringListener listener)&nbsp;&nbsp;&nbsp;&nbsp; at Microsoft.ApplicationServer.Caching.DataCache.&lt;&gt;c__DisplayClass49.&lt;Get&gt;b__48()&nbsp;&nbsp;&nbsp;&nbsp; at Microsoft.SharePoint.DistributedCaching.SPDistributedCache.GetObject(String key)&#39;.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 91d7039d-55e9-7036-63d4-13bd0943287a</em></p>
<p>&nbsp;</p>
<p><span style="font-size:small;">-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The client failed to get the token for user in question from Distributed cache.</span></p>
<p><em>w3wp.exe (ServerName:0x057C)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x03C4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SharePoint Foundation&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DistributedCache&nbsp;&nbsp;&nbsp;&nbsp; air4c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Medium&nbsp;&nbsp; Token Cache: <span style="color:#000000;background-color:#ffff99;">Failed to get token from distributed cache for &#39;05.t|okta|user@domain.com&#39;</span>.(This is expected during the process warm up or if data cache Initialization is getting done by some other thread). Exception: &#39;Microsoft.SharePoint.DistributedCaching.SPDistributedCacheConnectionTerminatedException: Connection to the server terminated,check if the cache host(s) is running&nbsp; ---&gt; <span style="background-color:#ffff99;">Microsoft.ApplicationServer.Caching.DataCacheException: ErrorCode&lt;ERRCA0016&gt;:SubStatus&lt;ES0001&gt;:The connection was terminated, possibly due to server or network problems or serialized Object size is greater than MaxBufferSize on server</span>. Result of the request is unknown. ---&gt; System.TimeoutException: The socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout. ---&gt; System.IO.IOException: The read operation failed, see inner exception. ---&gt; System.TimeoutException: The socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout. ---&gt; System.Net.Sockets.SocketException: The I/O operation has been aborted because of either a thread exit or an application request&nbsp;&nbsp;&nbsp;&nbsp; at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()&nbsp;&nbsp;&nbsp;&nbsp; at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs eventArgs)&nbsp;&nbsp;&nbsp;&nbsp; --- End of inner exception stack trace ---&nbsp;&nbsp;&nbsp;&nbsp; at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)&nbsp;&nbsp;&nbsp;&nbsp; at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.End(IAsyncResult result)&nbsp;&nbsp;&nbsp;&nbsp; at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)&nbsp;&nbsp;&nbsp;&nbsp; --- End of inner exception stack trace ---&nbsp;&nbsp;&nbsp;&nbsp; at System.Net.Security.NegotiateStream.EndRead(IAsyncResult asyncResult)&nbsp;&nbsp;&nbsp;&nbsp; at System.ServiceModel.Channels.StreamConnection.EndRead()&nbsp;&nbsp;&nbsp;&nbsp; --- End of inner exception stack trace ---&nbsp;&nbsp;&nbsp;&nbsp; at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)&nbsp;&nbsp;&nbsp;&nbsp; at System.ServiceModel.Channels.TransportDuplexSessionChannel.EndReceive(IAsyncResult result)&nbsp;&nbsp;&nbsp;&nbsp; at Microsoft.ApplicationServer.Caching.WcfClientChannel.CompleteProcessing(IAsyncResult result)&nbsp;&nbsp;&nbsp;&nbsp; --- End of inner exception stack trace ---&nbsp;&nbsp;&nbsp;&nbsp; at Microsoft.ApplicationServer.Caching.DataCache.ThrowException(ResponseBody respBody, RequestBody reqBody)&nbsp;&nbsp;&nbsp;&nbsp; at Microsoft.ApplicationServer.Caching.DataCache.InternalGet(String key, DataCacheItemVersion&amp; version, String region, IMonitoringListener listener)&nbsp;&nbsp;&nbsp;&nbsp; at Microsoft.ApplicationServer.Caching.DataCache.&lt;&gt;c__DisplayClass49.&lt;Get&gt;b__48()&nbsp;&nbsp;&nbsp;&nbsp; at Microsoft.SharePoint.DistributedCaching.SPDistributedCache.GetObject(String key)&nbsp;&nbsp;&nbsp;&nbsp; --- End of inner exception stack trace ---&nbsp;&nbsp;&nbsp;&nbsp; at Microsoft.SharePoint.DistributedCaching.SPDistributedCache.GetObject(String key)&nbsp;&nbsp;&nbsp;&nbsp; at Microsoft.SharePoint.IdentityModel.SPDistributedSecurityTokenCache.GetObject(String key)&nbsp; &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.IdentityModel.SPTokenCache.TryGetCachedToken(String cacheKey)&#39;.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 91d7039d-55e9-7036-63d4-13bd0943287a</em></p>
<p><em>w3wp.exe (ServerName:0x057C)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x03C4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SharePoint Foundation&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DistributedCache&nbsp;&nbsp;&nbsp;&nbsp; air4d&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Medium&nbsp;&nbsp; Token Cache: Reverting to local cache to get the token for &#39;05.t|okta|user@domain.com&#39;.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 91d7039d-55e9-7036-63d4-13bd0943287a</em></p>
<p><em>w3wp.exe (ServerName:0x057C)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x03C4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SharePoint Foundation&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Claims Authentication&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fr16&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Verbose&nbsp;&nbsp; <span style="background-color:#ffff99;">Token Cache: Entry missing for user &#39;05.t|okta|user@domain.com&#39;</span>.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 91d7039d-55e9-7036-63d4-13bd0943287a</em></p>
<p></p>
<p><span style="font-size:small;">&nbsp;</span></p>
<p><span style="font-size:small;">-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The user forcefully signed out to get a new token.</span></p>
<p></p>
<p><em>w3wp.exe (ServerName:0x057C)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x03C4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SharePoint Foundation&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Claims Authentication&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; af30i&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Verbose&nbsp;&nbsp; <span style="background-color:#ffff99;">Token Cache: Failed to find token for user &#39;05.t|okta|user@domain.com&#39; for cookie so signing out the user.</span>&nbsp;&nbsp;&nbsp;&nbsp; 91d7039d-55e9-7036-63d4-13bd0943287a</em></p>
<p></p>
<p></p>
<p><span style="font-size:small;">&nbsp;</span></p>
<p><span style="font-size:small;">Basically in this scenario, SharePoint stores the user&rsquo;s token in the user&#39;s browser session and in the DistributedCacheLogonTokenCache container. When SharePoint tried to retrieve the token from distributed cache, the connection would time out or a connection would be unavailable or the Distributed cache not able to serve the cookie detail due to some reason.&nbsp;Since it couldn&#39;t validate the presented token SharePoint had no choice but to log the user out and redirect them to the sign in page.</span></p>
<p><span style="font-size:small;">I shared one of my <a href="/b/sajiths/archive/2014/06/03/sharepoint-2013-layouts-pages-breaking-with-quot-exception-39-microsoft-applicationserver-caching-datacacheexception-errorcode-substatus-the-request-timed-out-quot.aspx" title="Blog" target="_blank">Blog</a> to the customer to make the DistributedLogonTokenCache values to&nbsp;standardize and to increase the&nbsp;&nbsp;distributed cache&nbsp;timeout values to 10 seconds.&nbsp;</span></p>
<p><span style="font-size:small;">After changing the Distributed cache value we noticed a change in authentication behavior that it re-authenticates very frequently than before like in every few minutes. </span></p>
<p><span style="font-size:small;">I gone through the current DistributedLogonTokenCache value sand found &quot;MaxConnectionsToServer&quot; was set to &quot;100&quot;.</span></p>
<p><span style="font-size:small;">The number of shared connections is determined by the&nbsp;maxConnectionsToServer<span><span style="font-size:small;">&nbsp;configuration setting, which defaults to the number of processor cores on the client machine. Ref:&nbsp;<a href="https://msdn.microsoft.com/en-us/library/azure/dn386109.aspx" title="https://msdn.microsoft.com/en-us/library/azure/dn386109.aspx" target="_blank">https://msdn.microsoft.com/en-us/library/azure/dn386109.aspx</a>. I shared following script with customer which to&nbsp;set &ldquo;MaxConnectionsToServer&rdquo; back to the recommended value of &ldquo;1&rdquo; for all&nbsp; containers--note that if &ldquo;MaxConnectionsToServer&rdquo; is set too high, we will see high memory usage from the DistributedCache process, and possible intermittent hangs.&nbsp;</span><br /></span></span></p>
<p></p>
<p></p>
<p>Add-PSSnapin Microsoft.Sharepoint.Powershell</p>
<p>#DistributedLogonTokenCache<br />$DLTC = Get-SPDistributedCacheClientSetting -ContainerType DistributedLogonTokenCache<br />$DLTC.MaxConnectionsToServer = 1<br />Set-SPDistributedCacheClientSetting -ContainerType DistributedLogonTokenCache -DistributedCacheClientSettings $DLTC</p>
<p>#DistributedViewStateCache<br />$DVSC = Get-SPDistributedCacheClientSetting -ContainerType DistributedViewStateCache<br />$DVSC.MaxConnectionsToServer = 1<br />Set-SPDistributedCacheClientSetting -ContainerType DistributedViewStateCache $DVSC</p>
<p>#DistributedAccessCache<br />$DAC = Get-SPDistributedCacheClientSetting -ContainerType DistributedAccessCache<br />$DAC.MaxConnectionsToServer = 1<br />Set-SPDistributedCacheClientSetting -ContainerType DistributedAccessCache $DAC</p>
<p>#DistributedAccessCache<br />$DAF = Get-SPDistributedCacheClientSetting -ContainerType DistributedAccessCache<br />$DAF.MaxConnectionsToServer = 1<br />Set-SPDistributedCacheClientSetting -ContainerType DistributedActivityFeedCache $DAF</p>
<p>#DistributedActivityFeedLMTCache<br />$DAFC = Get-SPDistributedCacheClientSetting -ContainerType DistributedActivityFeedLMTCache<br />$DAFC.MaxConnectionsToServer = 1<br />Set-SPDistributedCacheClientSetting -ContainerType DistributedActivityFeedLMTCache $DAFC</p>
<p>#DistributedBouncerCache<br />$DBC = Get-SPDistributedCacheClientSetting -ContainerType DistributedBouncerCache<br />$DBC.MaxConnectionsToServer = 1<br />Set-SPDistributedCacheClientSetting -ContainerType DistributedBouncerCache $DBC</p>
<p>#DistributedDefaultCache<br />$DDC = Get-SPDistributedCacheClientSetting -ContainerType DistributedDefaultCache<br />$DDC.MaxConnectionsToServer = 1<br />Set-SPDistributedCacheClientSetting -ContainerType DistributedDefaultCache $DDC</p>
<p>#DistributedSearchCache<br />$DSC = Get-SPDistributedCacheClientSetting -ContainerType DistributedSearchCache<br />$DSC.MaxConnectionsToServer = 1<br />Set-SPDistributedCacheClientSetting -ContainerType DistributedSearchCache $DSC</p>
<p>#DistributedSecurityTrimmingCache<br />$DTC = Get-SPDistributedCacheClientSetting -ContainerType DistributedSecurityTrimmingCache<br />$DTC.MaxConnectionsToServer = 1<br />Set-SPDistributedCacheClientSetting -ContainerType DistributedSecurityTrimmingCache $DTC</p>
<p>#DistributedServerToAppServerAccessTokenCache<br />$DSTAC = Get-SPDistributedCacheClientSetting -ContainerType DistributedServerToAppServerAccessTokenCache<br />$DSTAC.MaxConnectionsToServer = 1<br />Set-SPDistributedCacheClientSetting -ContainerType DistributedServerToAppServerAccessTokenCache $DSTAC</p>
<p><span style="font-size:small;">&nbsp;</span><span style="font-size:small;">After running the script, you&rsquo;ll need to do a Restart-CacheCluster to restart the AppFabric services.</span></p>
<p><span style="font-size:small;">We closely monitor the environment for next few days and found the web application doesnt try to re-authenticate frequently and the issue is resolved after changing the &quot;MaxConnectionToServer&quot; value to &quot;1&quot;.</span></p>
<p>Recently the following technet article updated with script to fine tune the distributed cache service,</p>
<p><a href="https://technet.microsoft.com/en-us/library/jj219613.aspx">https://technet.microsoft.com/en-us/library/jj219613.aspx</a></p>
<p>&nbsp;</p>
<p><span style="font-size:small;">&nbsp;</span><span style="font-size:small;">Happy SharePointing :)&nbsp;</span></p>
<p></p>
<p><span style="font-size:small;"><span>&nbsp;</span></span></p>
<p><span style="font-size:small;">&nbsp;</span></p>]]></content:encoded>
    </item>
    <item>
      <title>SP2013 ADImport | More than one DN specified for the same profile</title>
      <link>https://docs.microsoft.com/archive/blogs/sajiths/sp2013-adimport-more-than-one-dn-specified-for-the-same-profile</link>
      <pubDate>Wed, 03 Dec 2014 22:06:00 GMT</pubDate>
      <dc:creator><![CDATA[Sajith Sudhakaran]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/sajiths/2014/12/03/sp2013-adimport-more-than-one-dn-specified-for-the-same-profile/</guid>
      <description><![CDATA[I had an interesting issue where customer used ADImport to fetch the profile from AD...]]></description>
      <content:encoded><![CDATA[<p></p>
<p><span style="font-size:small;">I had an interesting issue where customer used ADImport to fetch the profile from AD to&nbsp;SharePoint. They had requirement to use Target audience functionality and when they look the &quot;Manage Audience&quot; in user profile service application, it shows only 5 users for a AD group where&nbsp;they have 186 users are part of this group in AD.&nbsp;</span><br /><br /><span style="font-size:small;">Had a look at the ULS while Full import and found following exception which talks about the account duplication in DNLookup table.&nbsp;</span><br /><br /><br /><span>OWSTIMER.EXE(SERVERNAME:0x192C) 0x12D4 SharePoint Portal Server User Profiles c8hz Verbose ProfileImportExportService.UpdateWithProfileChangeData: Begin Add &#39;Domain\User&#39;&nbsp;&nbsp;</span><br /><br /><span>OWSTIMER.EXE (SERVERNAME:0x192C)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x12D4 SharePoint Portal Server&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; User Profiles&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; aer4e Medium Exception while updating properties for &#39;Domain\User&#39;: Property: Url, Exception Microsoft.Office.Server.UserProfiles.PropertyNotDefinedException: Property Not Defined: Url.&nbsp; An administrator must create this property in the Profile Administration tool.&nbsp;&nbsp;&nbsp;&nbsp; at Microsoft.Office.Server.UserProfiles.UserProfile.get_Item(String strPropName)&nbsp;&nbsp;&nbsp;&nbsp; at Microsoft.Office.Server.UserProfiles.UserProfile.GetProfileValueCollection(String propName)&nbsp;&nbsp;&nbsp;&nbsp; at Microsoft.Office.Server.UserProfiles.UserProfile.BulkPropertiesUpdate(Int64 importExportId, Hashtable properties, String strAccountName).&nbsp;&nbsp;</span><br /><br /><span>OWSTIMER.EXE (SERVERNAME:0x192C)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x12D4 SharePoint Portal Server&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; User Profiles&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; aer4e Medium Exception while updating properties for &#39;Domain\User&#39;: Property: Description, Exception Microsoft.Office.Server.UserProfiles.PropertyNotDefinedException: Property Not Defined: Description.&nbsp; An administrator must create this property in the Profile Administration tool.&nbsp;&nbsp;&nbsp;&nbsp; at Microsoft.Office.Server.UserProfiles.UserProfile.get_Item(String strPropName)&nbsp;&nbsp;&nbsp;&nbsp; at Microsoft.Office.Server.UserProfiles.UserProfile.GetProfileValueCollection(String propName)&nbsp;&nbsp;&nbsp;&nbsp; at Microsoft.Office.Server.UserProfiles.UserProfile.BulkPropertiesUpdate(Int64 importExportId, Hashtable properties, String strAccountName).&nbsp;&nbsp;</span><br /><br /><span>OWSTIMER.EXE (SERVERNAME:0x192C)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x12D4 SharePoint Portal Server&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; User Profiles&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; aer4e Medium Exception while updating properties for &#39;Domain\User&#39;: Property: MailNickName, Exception Microsoft.Office.Server.UserProfiles.PropertyNotDefinedException: Property Not Defined: MailNickName.&nbsp; An administrator must create this property in the Profile Administration tool.&nbsp;&nbsp;&nbsp;&nbsp; at Microsoft.Office.Server.UserProfiles.UserProfile.get_Item(String strPropName)&nbsp;&nbsp;&nbsp;&nbsp; at Microsoft.Office.Server.UserProfiles.UserProfile.GetProfileValueCollection(String propName)&nbsp;&nbsp;&nbsp;&nbsp; at Microsoft.Office.Server.UserProfiles.UserProfile.BulkPropertiesUpdate(Int64 importExportId, Hashtable properties, String strAccountName).&nbsp;&nbsp;</span><br /><br /><span>OWSTIMER.EXE (SERVERNAME:0x192C)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x12D4 SharePoint Portal Server&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; User Profiles&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ogvr High User profile record of &quot;FMI\013081&quot; was changed by &#39;Domain\ServiceAccount&#39;.&nbsp;&nbsp;</span><br /><br /><span>OWSTIMER.EXE (SERVERNAME:0x192C)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x12D4 SharePoint Portal Server&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; User Profiles&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; c8i0 Verbose ProfileImportExportService.UpdateWithProfileChangeData: End Add &#39;Domain\User&#39;&nbsp;</span><br /><br /><span>OWSTIMER.EXE (SERVERNAME:0x192C)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x12D4 SharePoint Portal Server&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; User Profiles&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; aei8n High ProfileImportExportService.UpdateWithProfileChangeData: Uncaught exception for object &#39;14307fbf-5f94-48c4-a1f4-db8c1b409b96 (&#39;Domain\User&#39;)&#39; - System.InvalidOperationException: More than one DN specified for the same profile.&nbsp;&nbsp;&nbsp;&nbsp; at Microsoft.Office.Server.UserProfiles.ProfileImportExportService.AddDNLookupTable(UserProfileApplicationProxy upaProxy, Guid partitionID, Int64 recordId, String objectType, String distinguishedName)&nbsp;&nbsp;&nbsp;&nbsp; at Microsoft.Office.Server.UserProfiles.ProfileImportExportService.&lt;&gt;c__DisplayClass26.&lt;UpdateWithProfileChangeData&gt;b__24(Int32 idx).</span></p>
<p><span>&nbsp;</span></p>
<p><span style="text-decoration:underline;"><span style="font-size:medium;">Possible Causes</span></span></p>
<p><span style="font-size:small;">1) They may haven&#39;t do a Full profile import via UPA after the UPA configuration.&nbsp;<br />2) Most of the users may create by custom code, Search or by using My Sites.&nbsp;<br />3) First they were using UPS and later changed to ADImport. For some reason the profiles got corrupted.</span></p>
<p><span style="text-decoration:underline;"><span style="font-size:medium;">Resolution</span></span></p>
<p><span style="font-size:small;">1) Run following powershell command and make note of guid of UPSA.&nbsp;</span><br /><span style="font-size:small;">Get-SPServiceApplication&nbsp;</span><br /><span style="font-size:small;">2) Run following commands one by one.&nbsp;</span><br /><span style="font-size:small;">$u = Get-SPServiceApplication&nbsp;</span><br /><span style="font-size:small;">Set-SPProfileServiceApplication $u -GetNonImportedObjects $true # Here you will get the results for profiles &#39;IsImportedvalue = 0&#39; from ProfileDB&nbsp;</span><br /><span style="font-size:small;">Ran Set-SPProfileServiceApplication $u -PurgeNonImportedObjects $true # This cmdlet will mark the profiles for deletion and need MySiteCleanup job to delete those which are marked for deletion. If MySite is part of one user that added in missing profile, the same job will delete those MySites as well. <a href="http://blogs.msdn.com/b/kaevans/archive/2012/06/25/top-recommendations-for-managing-the-my-site-cleanup-timer-job.aspx">Here is the detailed implications while running My Site Cleanup job</a>.</span><br /><span style="font-size:small;">3) Run Incremental profile import. Query following against ProfileDB and we should get no results.&nbsp;</span><br /><span style="font-size:small;">select * from DNLookup where isimported !=1 &nbsp;# Make sure you have backup of profile database before running any queries against it.&nbsp;</span><br /><span style="font-size:small;">4) Go ahead and run Full profile Import, once the above query returns no result.</span></p>
<p><span style="font-size:small;">&nbsp;Reference :&nbsp;http://technet.microsoft.com/en-us/library/ff608004(v=office.15).aspx&nbsp;</span></p>
<p><span style="font-size:small;">Happy SharePointing :)&nbsp;</span></p>]]></content:encoded>
    </item>
    <item>
      <title>User Profile Synchronization Service stuck in 'Starting' state and no error in ULS |SharePoint2010|</title>
      <link>https://docs.microsoft.com/archive/blogs/sajiths/user-profile-synchronization-service-stuck-in-starting-state-and-no-error-in-uls-sharepoint2010</link>
      <pubDate>Thu, 14 Aug 2014 15:42:00 GMT</pubDate>
      <dc:creator><![CDATA[Sajith Sudhakaran]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/sajiths/2014/08/14/user-profile-synchronization-service-stuck-in-starting-state-and-no-error-in-uls-sharepoint2010/</guid>
      <description><![CDATA[It was pretty interesting case that the UPS was stuck in starting stage but there were no error...]]></description>
      <content:encoded><![CDATA[<p><span style="font-family:arial, helvetica, sans-serif;">It was pretty interesting case that the UPS was stuck in starting stage but there were no error messages in ULS and not even the &#39;User Profiles&#39; category.</span></p>
<p><span style="font-family:arial, helvetica, sans-serif;">Done many steps at least to get something in the ULS regarding this issue like flushing the config cache, Checking the permission level, deleting the one-time jobs etc..</span></p>
<p><span style="font-family:arial, helvetica, sans-serif;">While thinking logically, it seems something wrong with the timer job who broken in some point for some reason. To confirm that ran following powershell script..</span></p>
<p><span style="font-family:arial, helvetica, sans-serif;">(&nbsp;<a href="http://blogs.msdn.com/b/tehnoonr/archive/2011/09/07/sharepoint-server-2010-unable-to-provision-user-profile-synchronization-service-after-upgrade.aspx" title="http://blogs.msdn.com/b/tehnoonr/archive/2011/09/07/sharepoint-server-2010-unable-to-provision-user-profile-synchronization-service-after-upgrade.aspx" target="_blank">http://blogs.msdn.com/b/tehnoonr/archive/2011/09/07/sharepoint-server-2010-unable-to-provision-user-profile-synchronization-service-after-upgrade.aspx</a>&nbsp;)</span></p>
<p></p>
<p><em>$farm = Get-SPFarm </em><br /><em>$disabledTimers = $farm.TimerService.Instances | where {$_.Status -ne &quot;Online&quot;} </em><br /><em>if ($disabledTimers -ne $null) </em><br /><em>{ </em><br /><em> foreach ($timer in $disabledTimers) </em><br /><em> { </em><br /><em> Write-Host &quot;Timer service instance on server &quot; $timer.Server.Name &quot; is not Online. Current status:&quot; $timer.Status </em><br /><em> #Write-Host &quot;Attempting to set the status of the service instance to online&quot; </em><br /><em> #$timer.Status = [Microsoft.SharePoint.Administration.SPObjectStatus]::Online </em><br /><em> #$timer.Update() </em><br /><em> } </em><br /><em>} </em><br /><em>else </em><br /><em>{ </em><br /><em> Write-Host &quot;All Timer Service Instances in the farm are online! No problems found&quot; </em><br /><em>}</em></p>
<p></p>
<p><br /><span style="font-family:arial, helvetica, sans-serif;">The result of above script was &nbsp;&gt;&gt; &quot;Timer service instance on server &nbsp;SERVERNAMEis not Online. Current status: Disabled&quot;</span></p>
<p><span style="font-family:arial, helvetica, sans-serif;">Following script we used to start the timer service instance,</span></p>
<p></p>
<p></p>
<p><em>$farm = Get-SPFarm </em><br /><em>$disabledTimers = $farm.TimerService.Instances | where {$_.Status -ne &quot;Online&quot;} </em><br /><em>if ($disabledTimers -ne $null) </em><br /><em>{ </em><br /><em> foreach ($timer in $disabledTimers) </em><br /><em> { </em><br /><em> Write-Host &quot;Timer service instance on server &quot; $timer.Server.Name &quot; is not Online. Current status:&quot; $timer.Status </em><br /><em> Write-Host &quot;Attempting to set the status of the service instance to online&quot; </em><br /><em> $timer.Status = [Microsoft.SharePoint.Administration.SPObjectStatus]::Online </em><br /><em> $timer.Update() </em><br /><em> } </em><br /><em>} </em><br /><em>else </em><br /><em>{ </em><br /><em> Write-Host &quot;All Timer Service Instances in the farm are online! No problems found&quot; </em><br /><em>}</em></p>
<p></p>
<p></p>
<p><span style="font-family:arial, helvetica, sans-serif;">Once the timer service instance is up, restarted the timer service and tried to start the user profile synchronization service after deleting timer jobs which are stuck to run one time. But this time also we wasn&#39;t able to make it and made a progress on working the functionality to write user profile logs to SharePoint ULS.</span></p>
<p><span style="font-family:arial, helvetica, sans-serif;">Later while checking the permission levels based on the file system, I found that the the &#39;NETWORK SERVICE&#39; read per mission is missing on &#39;14&#39; hive. After clearing this permission issue again tried starting the UPS and found in ULS that the&nbsp;&nbsp;UPA web service was getting stopped with &#39;503 Service Unavailable&#39;. When&nbsp;checked the Application and found the web service is in stopped state for the identity as farm account with following error in system even viewer.</span></p>
<p></p>
<p></p>
<p><em>Description:</em><br /><em>The identity of application pool &#39;GUIID&#39; is invalid. The user name or password that is specified for the identity may be incorrect, or the user may not have batch logon rights. If the identity is not corrected, the application pool will be disabled when the application pool receives its first request. If batch logon rights are causing the problem, the identity in the IIS configuration store must be changed after rights have been granted before Windows Process Activation Service (WAS) can retry the logon. If the identity remains invalid after the first request for the application pool is processed, the application pool will be disabled. The data field contains the error number.</em><br /><em>Event Xml:</em><br /><em>&lt;Event xmlns=&quot;http://schemas.microsoft.com/win/2004/08/events/event&quot;&gt;</em><br /><em> &lt;System&gt;</em></p>
<p></p>
<p></p>
<p><span style="font-family:arial, helvetica, sans-serif;">The user agreed that he reset the farm account password due to some inaccessibility issues. So we re-enter the password for failed app pool identity and the &nbsp;User Profile Synchronization Service started successfully.</span></p>
<p></p>
<p>Hope this is helpful !</p>
<p></p>
<p></p>]]></content:encoded>
    </item>
    <item>
      <title>SharePoint 2013 layouts pages breaking with "Exception 'Microsoft.ApplicationServer.Caching.DataCacheException: ErrorCode:SubStatus:The request timed out"</title>
      <link>https://docs.microsoft.com/archive/blogs/sajiths/sharepoint-2013-layouts-pages-breaking-with-exception-microsoft-applicationserver-caching-datacacheexception-errorcodesubstatusthe-request-timed-out</link>
      <pubDate>Mon, 02 Jun 2014 18:45:00 GMT</pubDate>
      <dc:creator><![CDATA[Sajith Sudhakaran]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/sajiths/2014/06/02/sharepoint-2013-layouts-pages-breaking-with-exception-microsoft-applicationserver-caching-datacacheexception-errorcodesubstatusthe-request-timed-out/</guid>
      <description><![CDATA[Here is an issue based on Distributed cache I worked on last week.
SharePoint 2013 layouts page...]]></description>
      <content:encoded><![CDATA[<p><span style="text-decoration:underline;font-size:small;">Here is an issue based on Distributed cache I worked on last week.</span></p>
<p><span style="font-family:arial, helvetica, sans-serif;font-size:small;">SharePoint 2013 layouts page breaks after one or more post backs and loses View State with error below.</span></p>
<p><br />&quot;Unexpected error occurred in method &#39;Put&#39; , usage &#39;SPViewStateCache&#39; - Exception &#39;Microsoft.ApplicationServer.Caching.DataCacheException: ErrorCode:SubStatus:The request timed out.. Additional Information : The client was trying to communicate with the server : net.tcp://servername:22233&quot;&nbsp;</p>
<p></p>
<div>
<div class="sectionbody"><span style="font-family:arial, helvetica, sans-serif;font-size:small;">Basically when the client was trying to communicate with the server, it was throwing following error in ULS:-</span></div>
<div class="sectionbody"></div>
<div class="sectionbody"><span style="font-family:arial, helvetica, sans-serif;"></span><br /><br />Unexpected error occurred in method &#39;GetObject&#39; , usage &#39;SPViewStateCache&#39; - Exception &#39;Microsoft.ApplicationServer.Caching.DataCacheException: ErrorCode&lt;ERRCA0018&gt;:SubStatus&lt;ES0001&gt;:The request timed out.. Additional Information : The client was trying to communicate with the server : net.tcp://servername:22233&nbsp;&nbsp;&nbsp; <br />&nbsp;at Microsoft.ApplicationServer.Caching.DataCache.ThrowException(ResponseBody respBody, RequestBody reqBody)&nbsp;&nbsp;&nbsp; <br />at Microsoft.ApplicationServer.Caching.DataCache.InternalGet(String key, DataCacheItemVersion&amp; version, String region, IMonitoringListener listener) &nbsp;<br />&nbsp;at Microsoft.ApplicationServer.Caching.DataCache.&lt;&gt;c__DisplayClass49.&lt;Get&gt;b__48()&nbsp;&nbsp;&nbsp; <br />&nbsp;at Microsoft.SharePoint.DistributedCaching.SPDistributedCache.GetObject(String key)&#39;.</div>
</div>
<div>
<div class="sectionheading"></div>
<div class="sectionheading"></div>
<div class="sectionheading"></div>
<div class="sectionheading"><span style="font-family:arial, helvetica, sans-serif;font-size:small;">First I ran following commands to see the health of distributed cache includes the status.</span></div>
<div class="sectionheading"><span style="font-family:arial, helvetica, sans-serif;">&nbsp;</span></div>
<div class="sectionheading">
<p><em>$SPFarm = Get-SPFarm </em><br /><em>$cacheClusterName = &quot;SPDistributedCacheCluster_&quot; + $SPFarm.Id.ToString() </em><br /><em>$cacheClusterManager = [Microsoft.SharePoint.DistributedCaching.Utilities.SPDistributedCacheClusterInfoManager]::Local </em><br /><em>$cacheClusterInfo = $cacheClusterManager.GetSPDistributedCacheClusterInfo($cacheClusterName)</em><br /><em>$cacheClusterInfo</em></p>
<p></p>
</div>
<div class="sectionheading"><span style="font-family:arial, helvetica, sans-serif;font-size:small;">To resolve the issue, I suggested to run following Power Shell commands which increases the distributed cache time out values to 10 seconds.</span></div>
<div class="sectionheading"><span style="font-family:arial, helvetica, sans-serif;font-size:small;">&nbsp;</span></div>
<div class="sectionheading"><em>$settings = Get-SPDistributedCacheClientSetting -ContainerType DistributedLogonTokenCache </em><br /><em>$settings.ChannelOpenTimeOut =10000 </em><br /><em>$settings.RequestTimeout=10000 </em><br /><em>Set-SPDistributedCacheClientSetting -ContainerType DistributedLogonTokenCache -DistributedCacheClientSettings $settings </em><br /><em>$settingsverify = Get-SPDistributedCacheClientSetting -ContainerType DistributedLogonTokenCache </em><br /><em>$settingsverify </em><br /><br /><em>$settingsa = Get-SPDistributedCacheClientSetting -ContainerType DistributedViewStateCache </em><br /><em>$settingsa.ChannelOpenTimeOut = 10000 </em><br /><em>$settingsa.RequestTimeout=10000 </em><br /><em>Set-SPDistributedCacheClientSetting -ContainerType DistributedViewStateCache -DistributedCacheClientSettings $settingsa </em><br /><em>$settingsaverify = Get-SPDistributedCacheClientSetting -ContainerType DistributedViewStateCache </em><br /><em>$settingsaverify</em></div>
<div class="sectionheading"><br /><em>$set = Get-SPDistributedCacheClientSetting -ContainerType DistributedViewStateCache </em><br /><em>$set.MaxBufferSize = 33554432 </em><br /><em>Set-SPDistributedCacheClientSetting -ContainerType DistributedViewStateCache -DistributedCacheClientSettings $set </em><br /><em>Get-SPDistributedCacheClientSetting -ContainerType DistributedViewStateCache </em><br /><br /><em>$set = Get-SPDistributedCacheClientSetting -ContainerType DistributedLogonTokenCache </em><br /><em>$set.MaxBufferSize = 33554432 </em><br /><em>Set-SPDistributedCacheClientSetting -ContainerType DistributedLogonTokenCache -DistributedCacheClientSettings $set </em><br /><em>Get-SPDistributedCacheClientSetting -ContainerType DistributedLogonTokenCache&nbsp;</em></div>
<div class="sectionheading">&nbsp;</div>
<div class="sectionheading"></div>
<div class="sectionheading"></div>
</div>]]></content:encoded>
    </item>
    <item>
      <title>User Profile Synchronization Service stuck in 'Starting' state |SharePoint2013|</title>
      <link>https://docs.microsoft.com/archive/blogs/sajiths/user-profile-synchronization-service-stuck-in-starting-state-sharepoint2013</link>
      <pubDate>Fri, 11 Apr 2014 17:13:00 GMT</pubDate>
      <dc:creator><![CDATA[Sajith Sudhakaran]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/sajiths/2014/04/11/user-profile-synchronization-service-stuck-in-starting-state-sharepoint2013/</guid>
      <description><![CDATA[Yesterday I got a chance to work with one of the customer who was facing issue with Profile...]]></description>
      <content:encoded><![CDATA[<p><span style="font-family:arial, helvetica, sans-serif;">Yesterday I got a chance to work with one of the customer who was facing issue with Profile Synchronization service in hung state as &#39;Starting&#39; status in his SharePoint 2013 environment.</span></p>
<p><span style="font-family:arial, helvetica, sans-serif;">In the ULS viewer OWSTIMER.EXE process were throwing below error.</span></p>
<p><span style="font-family:arial, helvetica, sans-serif;">&nbsp;</span></p>
<p>&quot;UserProfileApplication.SynchronizeMIIS: Failed to configure MIIS post database, will attempt during next rerun. Exception: System.Configuration.ConfigurationErrorsException: ERR_CONFIG_DB&nbsp;&nbsp;&nbsp;&nbsp; at Microsoft.Office.Server.UserProfiles.Synchronization.ILMPostSetupConfiguration.ValidateConfigurationResult(UInt32 result)&nbsp;&nbsp;&nbsp;&nbsp; at Microsoft.Office.Server.UserProfiles.Synchronization.ILMPostSetupConfiguration.ConfigureMiisStage2()&nbsp;&nbsp;&nbsp;&nbsp; at Microsoft.Office.Server.Administration.UserProfileApplication.SetupSynchronizationService(ProfileSynchronizationServiceInstance profileSyncInstance)&quot;</p>
<p></p>
<p><span style="font-family:arial, helvetica, sans-serif;">Based on above error I made action plan which directed to resolution.</span></p>
<p><span style="font-family:arial, helvetica, sans-serif;">1) Ran &#39;Get-SPServiceInstance&#39; in Sharepoint Powershell to get the status of Profile Synchronization and found its in &#39;Provisioning&#39; status.</span></p>
<p><span style="font-family:arial, helvetica, sans-serif;">2) Stopped Profile Synchronization service by running the command &#39;Stop-SPServiceInstance&#39;.</span></p>
<p><span style="font-family:arial, helvetica, sans-serif;">3) Database was running on SQL2012 and&nbsp;&nbsp;checked SQL Native client in C:\Windows\System32 and found it was version11 (sqlncli11.dll).</span></p>
<p><span style="font-family:arial, helvetica, sans-serif;">4) Next step was to check the SharePoint box and found there are no SQL Native client deployed which is one of prerequisite for SharePoint 2013 deployment.</span></p>
<p><span style="font-family:arial, helvetica, sans-serif;">5) After deploying&nbsp;SQL Server 2008 R2 SP1 Native Client in all SharePoint boxes,&nbsp;clicked on Start &#39;User Profile Synchronisation Service&#39; and it Started successfully.</span></p>]]></content:encoded>
    </item>
  </channel>
</rss>