<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Sujeet Sharma</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/sujesh/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/sujesh/feed.xml</link>
    <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>Replacing Security Token Service (STS) certificate of the on-premises SharePoint Server fails</title>
      <link>https://docs.microsoft.com/archive/blogs/sujesh/replacing-security-token-service-sts-of-the-on-premises-sharepoint-server-fails</link>
      <pubDate>Wed, 14 Feb 2018 02:04:15 GMT</pubDate>
      <dc:creator><![CDATA[sujeetsks]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/sujesh/?p=115</guid>
      <description><![CDATA[Background
 ==========
When a trust relationship is needed between two SharePoint Server farms, or...]]></description>
      <content:encoded><![CDATA[<strong>Background</strong>
<strong> ==========</strong>
<span>When a trust relationship is needed between two SharePoint Server farms, or when a farm is configured to participate in a hybrid environment, you must use a common STS certificate between the trust members. We recommend that you buy a new STS certificate from a public Certificate Authority (CA). This gives you the highest level of certificate security, and reduces the possibility that a self-signed certificate will have integration issues with other applications and services. You can use a self-signed certificate for test or pilot environments.
</span><a href="https://technet.microsoft.com/en-us/library/dn551378.aspx"><span>
https://technet.microsoft.com/en-us/library/dn551378.aspx
</span></a>
<strong>Issue</strong>
<strong> ====</strong>
You are following steps given in the article and receive below error when using SHA256 algorithm based certificate(Self-signed or CA).
"The timer job completed, but failed on one or more machines in the farm"

<strong>Command used:</strong>
$pfxPath = "&lt;path to replacement certificate (.pfx file)&gt;"
$pfxPass = "&lt;certificate password&gt;"
$stsCertificate = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2 $pfxPath, $pfxPass, 20
Set-SPSecurityTokenServiceConfig -ImportSigningCertificate $stsCertificate
<pre><strong>Error in ULS:</strong>
02/06/2018 14:31:52.29 OWSTIMER.EXE (0x04B0) 0x0FD8 SharePoint Foundation Timer 6398 Critical The Execute method of job definition Microsoft.SharePoint.Administration.SPServiceApplicationInstanceProvisioningJobDefinition (ID 64a8d164-df91-49b2-b568-462a12a1cb71) threw an exception. More information is included below. Invalid provider type specified. 8cf6479e-5da4-5081-f6a1-6b94c53300d8

02/06/2018 14:31:52.29 OWSTIMER.EXE (0x04B0) 0x0FD8 SharePoint Foundation Timer 72ae Unexpected
 Exception stack trace:
 at System.Security.Cryptography.Utils.CreateProvHandle(CspParameters parameters, Boolean randomKeyContainer)
 at System.Security.Cryptography.Utils.GetKeyPairHelper(CspAlgorithmType keyType, CspParameters parameters, Boolean randomKeyContainer, Int32 dwKeySize, SafeProvHandle&amp; safeProvHandle, SafeKeyHandle&amp; safeKeyHandle)
 at System.Security.Cryptography.RSACryptoServiceProvider.GetKeyPair()
 at System.Security.Cryptography.X509Certificates.X509Certificate2.get_PrivateKey()
 at Microsoft.SharePoint.Administration.SPCertificateProvisioningAssistant.ProvisionCertificate(String storeName, StoreLocation storeLocation, SecureString exportedCertificate, CryptoKeySecurity security)
 at Microsoft.SharePoint.Administration.SPCertificateAuthority.ProvisionCertificate(String storeName, StoreLocation storeLocation, SecureString exportedCertificate, CryptoKeySecurity security)
 at Microsoft.SharePoint.Administration.Claims.SPSecurityTokenServiceApplication.ProvisionLocal(SPServiceInstance serviceInstance)
 at Microsoft.SharePoint.Administration.SPServiceApplicationInstanceProvisioningJobDefinition.Execute(Guid targetInstanceId)
 at Microsoft.SharePoint.Administration.SPAdministrationServiceJobDefinition.ExecuteAdminJob(Guid targetInstanceId)
 at Microsoft.SharePoint.Administration.SPTimerJobInvokeInternal.Invoke(SPJobDefinition jd, Guid targetInstanceId, Boolean isTimerService, Int32&amp; result)
 8cf6479e-5da4-5081-f6a1-6b94c53300d8</pre>
<strong>Cause:</strong>
<strong> =====</strong>
The certificate created by CA or Self-Signed is created without the KEYSPECS set to "<span>AT_KEYEXCHANGE</span>".

The KeySpec property identifies how a key generated or retrieved by Microsoft CryptoAPI (CAPI), from a Microsoft legacy Cryptographic Storage Provider (CSP), can be used.
A KeySpec value of 1, or AT_KEYEXCHANGE, can be used for signing and encryption. A value of 2, or AT_SIGNATURE, is only used for signing.
The most common KeySpec mis-configuration is using a value of 2 for a certificate other than the token signing certificate.
For certificates whose keys were generated using Cryptography Next Generation (CNG) providers, there is no concept of key specification, and the KeySpec value will always be zero.

To see a certificates value you can use the certutil command line tool.
The following is an example: This will dump the certificate information to the screen
<span style="color: #0000ff"><strong>certutil –v –store my</strong></span>

You will notice that ProviderType=0 for failing certificate
<pre> CERT_KEY_PROV_INFO_PROP_ID(2):
 Key Container = CertReq-8186d92c-a1ba-4a0d-8057-2c6e164e54c2
 Unique container name: 19a9eec0e1d58579ec9521356b1f3dab_7b6bef17-b3d8-4810-b027-f4271b5b8c99
 <strong><span style="color: #ff0000">Provider = Microsoft Software Key Storage Provider</span></strong>
<strong><span style="color: #ff0000"> ProviderType = 0</span></strong>
 Flags = 20 (32)
 CRYPT_MACHINE_KEYSET -- 20 (32)
 <strong><span style="color: #ff0000">KeySpec = 0 -- XCN_AT_NONE</span></strong></pre>
<pre>However, a working certificate will have below details:
 CERT_KEY_PROV_INFO_PROP_ID(2):
 Key Container = 27925d79f29201c6ff775267682bcdec_7b6bef17-b3d8-4810-b027-f4271b5b8c99
 Simple container name: te-1a815876-5775-40db-b18f-9829d9aead99
 <strong><span style="color: #339966">Provider = Microsoft Strong Cryptographic Provider</span></strong>
<strong><span style="color: #339966"> ProviderType = 1</span></strong>
 Flags = 20 (32)
 CRYPT_MACHINE_KEYSET -- 20 (32)
 <strong><span style="color: #339966">KeySpec = 1 -- AT_KEYEXCHANGE</span></strong></pre>
More Information: <a href="https://docs.microsoft.com/en-us/windows-server/identity/ad-fs/technical-reference/ad-fs-and-keyspec-property">https://docs.microsoft.com/en-us/windows-server/identity/ad-fs/technical-reference/ad-fs-and-keyspec-property</a>

<strong>Solution:</strong>
<strong>=======
</strong>You would require to get a new CA certificate or self-signed certificate which is created with KeySpec value of 1, or AT_KEYEXCHANGE. This is required because we cannot update the new certificate using "Set-SPSecurityTokenServiceConfig" command. The command does not have option to import the certificate and set the KeySpec value to 1.

<strong>For other applications:</strong> Changing the KeySpec value does not require the certificate to be re-generated or re-issued by the Certificate Authority. The KeySpec can be changed by re-importing the complete certificate and private key from a PFX file into the certificate store using the steps below:
<ol>
 	<li>Export the certificate including private key to a PFX file.</li>
 	<li>Delete the existing certificate</li>
 	<li>Open an elevated PowerShell command prompt and import the PFX file using the cmdlet syntax below, specifying the AT_KEYEXCHANGE value:
<span style="color: #0000ff"><strong>certutil –importpfx certfile.pfx AT_KEYEXCHANGE</strong></span></li>
 	<li>Restart the service.</li>
</ol>
You can also generate the a self-signed certificate using below command:

<span style="color: #0000ff"><strong>New-SelfSignedCertificate -DnsName "dns.domain.com" -KeySpec "1" -HashAlgorithm "SHA256" -CertStoreLocation "cert:\LocalMachine\My"</strong></span>
Note: This command will run successfully on Windows 10 and Windows Server 2016]]></content:encoded>
    </item>
    <item>
      <title>Error while executing web part: System.Net.WebException: The operation has timed out</title>
      <link>https://docs.microsoft.com/archive/blogs/sujesh/error-while-executing-web-part-system-net-webexception-the-operation-has-timed-out</link>
      <pubDate>Fri, 10 Nov 2017 22:39:53 GMT</pubDate>
      <dc:creator><![CDATA[sujeetsks]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/sujesh/?p=105</guid>
      <description><![CDATA[Symptoms: You have custom  data form web parts in SharePoint page connected via several types of...]]></description>
      <content:encoded><![CDATA[<span style="text-decoration: underline"><strong>Symptoms:</strong></span> You have custom  data form web parts in SharePoint page connected via several types of data sources. While opening the page the web parts fail to render with below error.

Unable to display this Web Part. For information on how to solve the problem, open this web page in an HTML editor compatible with Microsoft SharePoint Foundation, such as Microsoft SharePoint Designer. If the problem persists, contact the web server administrator.
Correlation Identifier: 6e922b9e-26ce-e067-e53b-397abcad5020

If you collect the ULS logs, you can see below error.

11/10/2017 11:51:38.06        w3wp.exe (0x402C)        0x1438        SharePoint Foundation        Web Parts        89a1        High
Error while executing web part: System.Net.WebException: The operation has timed out
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.SharePoint.WebControls.SoapDataSource.GetResponseString(SoapCommand currentSoapCommand)
at Microsoft.SharePoint.WebControls.SoapDataSource.ExecuteInternal(SoapCommand currentSoapCommand)
at Microsoft.SharePoint.WebControls.BaseXmlDataSource.Execute(String request)
at Microsoft.SharePoint.WebControls.BaseXmlDataSource.GetXmlDocument()
at Microsoft.SharePoint.WebPartPages.DataFormWebPart.GetHierarchicalXPathNavigator(IHierarchicalDataSource ds)
at Microsoft.SharePoint.WebControls.SingleDataSource.GetXPathNavigatorInternal()
at Microsoft.SharePoint.WebControls.SingleDataSource.GetXPathNavigator()
at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform)        ae932b9e-163d-e067-d10d-36ae21cd099e

11/10/2017 11:51:38.06        w3wp.exe (0x402C)        0x1438        SharePoint Foundation        Monitoring        b4ly        High        Leaving Monitored Scope (DataBinding DataFormWebPart (Data)). Execution Time=30008.3137661351        ae932b9e-163d-e067-d10d-36ae21cd099e

<span style="text-decoration: underline"><strong>Cause:</strong></span> This happens because of the default "Data-retrieval-services-timeout" timeout of 30 seconds. The data source takes more than 30 seconds to respond back which result in the error.

<span style="text-decoration: underline"><strong>Solution:</strong></span> You can increase the default "Data-retrieval-services-timeout" timeout to a greater value like 45 seconds.

stsadm -o setproperty -pn data-retrieval-services-timeout -pv 45

Refer: <a href="https://technet.microsoft.com/en-us/library/cc288342%28v=office.12%29.aspx">https://technet.microsoft.com/en-us/library/cc288342%28v=office.12%29.aspx</a>

This setting applies to the following data retrieval services:
OLDEB
SOAP Passthrough
XML-URL
SoapDataSource
XmlUrlDataSource]]></content:encoded>
    </item>
    <item>
      <title>SharePoint Timer jobs not running(Specially one-time timer jobs)</title>
      <link>https://docs.microsoft.com/archive/blogs/sujesh/sharepoint-timer-jobs-not-runningspecially-one-time-timer-jobs</link>
      <pubDate>Mon, 16 Oct 2017 18:04:06 GMT</pubDate>
      <dc:creator><![CDATA[sujeetsks]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/sujesh/?p=95</guid>
      <description><![CDATA[Problem description:
 ====================
In your SharePoint farm you start to experience that...]]></description>
      <content:encoded><![CDATA[<strong>Problem description:</strong>
<strong> ====================</strong>
In your SharePoint farm you start to experience that the timer jobs are not running normally. Like custom timer jobs or one-time timer jobs do not run once you try running it. This also affects the UPA sync service not getting started or provisioning as they create one-time timer jobs. Another good example to identify the problem is to run "Merge-SPLogFile" command that creates one-time timer jobs to collect logs from all the servers in the farm.

<strong>Cause:</strong>
<strong> ======</strong>
1. Although the SharePoint Timer service was started in services.msc, the timer service instance object (this is a SharePoint farm object) may be set to “Disabled”.Use below script to get the status of all the timer instances in the farm.

$farm = Get-SPFarm
$FarmTimers = $farm.TimerService.Instances
foreach ($FT in $FarmTimers)
{
write-host "Server: " $FT.Server.Name.ToString();
write-host "Status: " $FT.status;
write-host "Allow Service Jobs: " $FT.AllowServiceJobs;
write-host "Allow Content DB Jobs: " $FT.AllowContentDatabaseJobs;"`n"
}

2. The "TimerJobHistory" table in SharePoint Config DB may have too many records which causes timer jobs not to function correctly. This is followed because "Delete job history" timer job not running for a long time. This job is supposed to purge timer job history older than 7 days.Use below SQL queries and commands to validate the possibility.

&gt;&gt;SQL query on your SharePoint Config DB.

Select COUNT(*) from [SharePoint_Config].[dbo].[TimerJobHistory] with(nolock)
Select Top 100 * from [SharePoint_Config].[dbo].[TimerJobHistory] with(nolock) order by StartTime

Output will show huge number of records e.g. 5 Million records. Also, will also notice that the oldest timer job history record("StartTime" column) in DB is for an older date (normal would be 7 days old). Older records are supposed to be purged by "Delete job history" timer job which, you can validate below.

&gt;&gt;PowerShell command on your SharePoint server.

Get-SPTimerJob | ?{$_.DisplayName -eq "Delete job history"} | fl

This will return the "LastRunTime" of the timer job. Normally this will be date when the issue started

<strong>Solution:</strong>
<strong> ==========</strong>
&gt;&gt; For the 1st issue, you run below PowerShell command to re-provision the instance to "Online" state.

$farm = Get-SPFarm
$FarmTimers = $farm.TimerService.Instances
foreach ($FT in $FarmTimers)
{
write-host "Server: " $FT.Server.Name.ToString();
write-host "Status: " $FT.status;
write-host "Allow Service Jobs: " $FT.AllowServiceJobs;
write-host "Allow Content DB Jobs: " $FT.AllowContentDatabaseJobs;"`n"
}
$disabledTimers = $farm.TimerService.Instances | where {$_.Status -ne "Online"}
if ($disabledTimers -ne $null)
{
foreach ($timer in $disabledTimers)
{
Write-Host -ForegroundColor Red "Timer service instance on server " $timer.Server.Name " is NOT Online. Current status:" $timer.Status
Write-Host -ForegroundColor Green "Attempting to set the status of the service instance to online..."
$timer.Provision()
$timer.Start()
write-host -ForegroundColor Red "You MUST now go restart the SharePoint timer service on server " $FT.Server.Name}}
else
{
Write-Host -ForegroundColor Green "All Timer Service Instances in the farm are online. No problems found!"
}

&gt;&gt; For the 2nd issue, you will need Microsoft's engagement to clear out the "TimerJobHistory" table in SharePoint Config DB. This cannot be done as this is not a Microsoft supported DB operation. So, better engage Microsoft after opening a support ticket with them at <a href="https://support.microsoft.com/">https://support.microsoft.com/</a>.
<strong>Refer this article</strong> - <a href="https://support.microsoft.com/en-in/help/841057/support-for-changes-to-the-databases-that-are-used-by-office-server-pr">Support for changes to the databases that are used by Office server products and by Windows SharePoint Services</a>

<span style="color: #ff0000">Note: Dealing with Timer instances could cause other issues with the farm. Better to open ticket with Microsoft for such issues as these may be way complex as you think.</span>]]></content:encoded>
    </item>
    <item>
      <title>"The caller does not have the necessary permissions required for this operation. Permissions granted: None. Required permissions: WriteScope" error while publishing SharePoint 2013 workflows using SharePoint Designer 2013</title>
      <link>https://docs.microsoft.com/archive/blogs/sujesh/the-caller-does-not-have-the-necessary-permissions-required-for-this-operation-permissions-granted-none-required-permissions-writescope-error-while-publishing-sharepoint-2013-workflows-using-s</link>
      <pubDate>Fri, 05 May 2017 01:32:49 GMT</pubDate>
      <dc:creator><![CDATA[sujeetsks]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/sujesh/?p=85</guid>
      <description><![CDATA[Scenario: Consider creating a SharePoint 2013 workflow and while publishing you receive "The caller...]]></description>
      <content:encoded><![CDATA[<span style="text-decoration: underline"><strong>Scenario:</strong></span> Consider creating a SharePoint 2013 workflow and while publishing you receive "The caller does not have the necessary permissions required for this operation. Permissions granted: None. Required permissions: WriteScope" error.
<p lang="en-IN"><strong>Error in fiddler
</strong>POST https://&lt;Site URL&gt;/_vti_bin/client.svc/ProcessQuery HTTP/1.1
Date: Fri, 21 Apr 2017 18:09:41 GMT
MIME-Version: 1.0
Accept: */*
X-RequestForceAuthentication: true
X-RequestDigest: 0xA17F63D097A8EADBA2EC36CFAF8B1F978EDEE81350DE11A167F062732783488D3DCAC1BC57C5193807679BCD4FAA1D510392C6E52C8696C5A6EF83D8F26C79D8,21 Apr 2017 18:09:40 -0000
User-Agent: Mozilla/4.0 (compatible; MS FrontPage 15.0)
Host: teamdev2013.borderstates.com
Accept-Language: en-us, en;q=0.1
Accept: auth/sicily
X-FORMS_BASED_AUTH_ACCEPTED: T
Content-Length: 773
Content-Type: text/xml
X-Vermeer-Content-Type: text/xml
Accept-encoding: gzip, deflate
Connection: Keep-Alive
Cache-Control: no-cache</p>
&lt;Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="15.0.0.0" ApplicationName=".NET Library" xmlns="https://schemas.microsoft.com/sharepoint/clientquery/2009"&gt;&lt;Actions&gt;&lt;Method Name="PublishDefinition" Id="6111" ObjectPathId="4823"&gt;&lt;Parameters&gt;&lt;Parameter Type="Guid"&gt;{48f24bb8-be57-47e3-8cb6-2463268b1c80}&lt;/Parameter&gt;&lt;/Parameters&gt;&lt;/Method&gt;&lt;/Actions&gt;&lt;ObjectPaths&gt;&lt;Method Id="4823" ParentId="4819" Name="GetWorkflowDeploymentService" /&gt;&lt;Constructor Id="4819" TypeId="{4ccc7f0e-bf7e-4477-999c-6458a73d0039}"&gt;&lt;Parameters&gt;&lt;Parameter ObjectPathId="3" /&gt;&lt;/Parameters&gt;&lt;/Constructor&gt;&lt;Identity Id="3" Name="740c6a0b-85e2-48a0-a494-e0f1759d4aa7:site:f49e044d-949f-4ddf-bcab-7bac63c205bc:web:77851493-24d0-41a2-babb-4dc3db86a3eb" /&gt;&lt;/ObjectPaths&gt;&lt;/Request&gt;
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/json; charset=utf-8
Vary: Accept-Encoding
Server: Microsoft-IIS/7.5
X-SharePointHealthScore: 0
SPClientServiceRequestDuration: 126
X-AspNet-Version: 4.0.30319
SPRequestGuid: 163eea9d-6a47-4040-948b-13a14760baee
request-id: 163eea9d-6a47-4040-948b-13a14760baee
X-RequestDigest: 0xA17F63D097A8EADBA2EC36CFAF8B1F978EDEE81350DE11A167F062732783488D3DCAC1BC57C5193807679BCD4FAA1D510392C6E52C8696C5A6EF83D8F26C79D8,21 Apr 2017 18:09:40 -0000
X-FRAME-OPTIONS: SAMEORIGIN
X-Powered-By: ASP.NET
MicrosoftSharePointTeamServices: 15.0.4675.1000
X-Content-Type-Options: nosniff
X-MS-InvokeApp: 1; RequireReadOnly
Date: Fri, 21 Apr 2017 18:09:39 GMT
Content-Length: 830

[
{
"SchemaVersion":"15.0.0.0","LibraryVersion":"15.0.4763.1000","ErrorInfo":{
"ErrorMessage":"System.InvalidOperationException: Operation failed with error System.UnauthorizedAccessException: The caller does not have the necessary permissions required for this operation. Permissions granted: None. Required permissions: WriteScope. HTTP headers received from the server - ActivityId: 60a96928-f3ca-40d1-a4f5-3fa7b3f77f26. NodeId: SPDEV01. Scope: \u002fSharePoint\u002fdefault\u002ff49e044d-949f-4ddf-bcab-7bac63c205bc. Client ActivityId : 163eea9d-6a47-4040-948b-13a14760baee. ---&gt; System.Net.WebException: T","ErrorValue":null,"TraceCorrelationId":"163eea9d-6a47-4040-948b-13a14760baee","ErrorCode":-2130575223,"ErrorTypeName":"Microsoft.SharePoint.SPException"
},"TraceCorrelationId":"163eea9d-6a47-4040-948b-13a14760baee"
}
]

<strong>ULS error from its correlation ID
</strong>04/21/2017 13:09:40.57 w3wp.exe (SERVER:0x1F88) 0x5EF0 SharePoint Server General 7888 Warning
A runtime exception was detected. Details follow. Message: The caller does not have the necessary permissions required for this operation. Permissions granted: None. Required permissions: WriteScope. HTTP headers received from the server - ActivityId: 60a96928-f3ca-40d1-a4f5-3fa7b3f77f26. NodeId: SERVER. Scope: /SharePoint/default/f49e044d-949f-4ddf-bcab-7bac63c205bc. Client ActivityId : 163eea9d-6a47-4040-948b-13a14760baee. Technical Details: System.UnauthorizedAccessException: The caller does not have the necessary permissions required for this operation. Permissions granted: None. Required permissions: WriteScope. HTTP headers received from the server - ActivityId: 60a96928-f3ca-40d1-a4f5-3fa7b3f77f26. NodeId: SPDEV01. Scope: /SharePoint/default/f49e044d-949f-4ddf-bcab-7bac63c205bc. Client ActivityId : 163eea9d-6a47-4040-948b-13a14760baee. ---&gt; System.Net.WebException: The remote server returned an error: (403) Forbidden.
at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
at Microsoft.Workflow.Client.HttpGetResponseAsyncResult`1.End(IAsyncResult result)
at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content) -
-- End of inner exception stack trace ---
at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)
at Microsoft.Workflow.Client.WorkflowManagementClient.SendRequest[T](HttpWebRequest request, T content)
at Microsoft.Workflow.Client.ScopeManager.PublishScopeInternal(ScopeDescription description, String[] pathSegments)
at Microsoft.Workflow.Client.ScopeManager.PublishChildScope(String childScopeName, ScopeDescription description)
at Microsoft.SharePoint.WorkflowServices.SPWebWorkflowSecurityContext.CreateServiceGroup(String scopeAddress, ScopeDescription serviceGroup)
at Microsoft.SharePoint.WorkflowServices.SPWebWorkflowSecurityContext.CreateOrUpdateServiceGroup(SPWeb lookupWeb, SPAppPrincipal app)
163eea9d-6a47-4040-948b-13a14760baee
<p lang="en-IN"><span style="text-decoration: underline"><strong>Cause: </strong></span>This is a know issue with Workflow Manager
<a href="https://msdn.microsoft.com/en-us/library/jj193462(v=azure.10).aspx">Known Issues in Workflow Manager 1.0</a></p>
<p lang="en-IN"><strong><span style="text-decoration: underline">Solution:</span></strong> Run the client application using elevated permissions and run these commands to solve the issue.<span style="text-decoration: underline">
</span></p>

<pre><strong>On WFM server</strong>
$sec = New-Object Microsoft.Workflow.Client.Security.WindowsSecurityConfiguration("All Users") 
$sec.WorkflowAdminGroupName = "Users" 
Set-WFScopeSecurity -ScopeUri https://&lt;WFM server FQDN&gt;:12290/ -SecurityConfiguration $sec</pre>
<pre><strong>On SP server</strong> 
Register-SPWorkflowService –SPSite "https://&lt;Site URL&gt;/" –WorkflowHostUri "https://&lt;WFM server FQDN&gt;:12290/" –AllowOAuthHttp –Force</pre>
Refer this article for more information: <a href="https://msdn.microsoft.com/en-us/library/jj193462(v=azure.10).aspx">https://msdn.microsoft.com/en-us/library/jj193462(v=azure.10).aspx</a>]]></content:encoded>
    </item>
    <item>
      <title>"Access denied by Business Data connectivity" error while creating external content type using SPD on a SharePoint environment with minimal permission</title>
      <link>https://docs.microsoft.com/archive/blogs/sujesh/access-denied-by-business-data-connectivity-error-while-creating-external-content-type-using-spd-on-a-sharepoint-environment-with-minimal-permission</link>
      <pubDate>Fri, 05 May 2017 01:08:09 GMT</pubDate>
      <dc:creator><![CDATA[sujeetsks]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/sujesh/?p=56</guid>
      <description><![CDATA[Scenario: Consider a scenario of least permission installation of SharePoint. You have a site...]]></description>
      <content:encoded><![CDATA[<span style="text-decoration: underline"><strong>Scenario:</strong></span> Consider a scenario of least permission installation of SharePoint. You have a site collection admin account which meets all the prerequisites given in below article.
<a href="https://technet.microsoft.com/en-us/library/jj683118.aspx">Prerequisites for deploying a Business Connectivity Services on-premises solution in SharePoint 2013
</a>
<ul>
 	<li>You have an account that has permissions to administer the Business Data Connectivity Service Application</li>
 	<li>You have an account that has permissions to administer the Secure Store Service service application<a href="https://technet.microsoft.com/en-us/library/jj683118.aspx">
</a></li>
</ul>
When using the same account to connect to a SQL database using secure store SSO ID, you receive "Access denied by Business Data connectivity" error in SharePoint Designer.

<span style="text-decoration: underline">In fiddler trace, we see below error:
</span>&lt;message&gt;IEntity could not be found using criteria 'The requested Entity 'New external content type (2)' under Namespace 'https://&lt;site url&gt;' was not found.'.&lt;/message&gt;&lt;metadataObjectTypeName&gt;Microsoft.BusinessData.MetadataModel.IEntity, Microsoft.BusinessData, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&lt;/metadataObjectTypeName&gt;&lt;serverStackTrace&gt; at Microsoft.SharePoint.BusinessData.SharedService.BdcServiceApplicationProxy.Execute[T](String operationName, UInt32 maxRunningTime, ExecuteDelegate`1 operation, Boolean performCanaryCheck, Boolean isChannelThatDelegatesIdentity)
at Microsoft.SharePoint.BusinessData.SharedService.BdcServiceApplicationProxy.GetEntityWithNameAndNamespace(String namespace, String name, Guid partitionId)
at Microsoft.SharePoint.BusinessData.SharedService.BusinessDataService.&amp;lt;&amp;gt;c__DisplayClass9c.&amp;lt;GetEntityWithNameAndNamespace&amp;gt;b__9b(BdcServiceApplicationProxy serviceApplication)
at Microsoft.SharePoint.BusinessData.SharedService.BusinessDataService.Execute[T](ExecuteDelegate`1 operation)&lt;/serverStackTrace&gt;&lt;a:SearchCriteria&gt;The requested Entity 'New external content type (2)' under Namespace 'https://&lt;site URL&gt;' was not found.&lt;/a:SearchCriteria&gt;&lt;/MetadataException&gt;&lt;/detail&gt;&lt;/s:Fault&gt;&lt;/s:Body&gt;&lt;/s:Envelope&gt;

<span style="text-decoration: underline">In ULS we see Access denier error</span>
04/14/2017 12:43:46.73 w3wp.exe (SERVER:0x7728) 0x5D18 Business Connectivity Services Business Data 9f4c Unexpected 'Business Data Catalog' BdcServiceApplication logging server side AccessDeniedException before marshalling and rethrowing on client side: Access Denied for User '0#.w|domain\username', which may be an impersonation by 'domain\user'. Securable IMetadataCatalog with Name 'ApplicationRegistry' denied access. Stack Trace:    at Microsoft.SharePoint.BusinessData.SharedService.MetadataObjectAccessor.CheckCreateAccess(MetadataObjectStruct parentStruct, DbSessionWrapper dbSessionWrapper)     at Microsoft.SharePoint.BusinessData.SharedService.ModelAccessor.Create(MetadataObjectStruct rawValues, MetadataObjectStruct applicationRegistryStruct, DbSessionWrapper dbSessionWrapper)     at Microsoft.SharePoint.BusinessData.SharedService.BdcServiceApplication.Execute[T](String operationName, UInt32 maxRunningTime, ExecuteDelegate`1 operation) 41ffe79d-b797-90d3-dc0a-0c6f8d45c7af

<span style="text-decoration: underline"><strong>Cause:</strong></span> The article given is causing the confusion as, the site collection admin account used to create the external content type has permission on BCS service application but, still gets the "Access denied by Business Data connectivity" error. Account used for creating the external content type must have "Edit, Execute, Selectable in Clients and Set permissions" at "Metadata Store Permission" of BCS service application.

<span style="text-decoration: underline"><strong>Resolution:</strong></span>

Open BCS service application and click on "Set Metadata Store Permission". Add the user account (through which SPD is open) in there with Edit, Execute, Selectable in Clients and Set permissions added to the account.

<a href="https://msdnshared.blob.core.windows.net/media/2017/05/13.png"><img src="https://msdnshared.blob.core.windows.net/media/2017/05/13-300x210.png" alt="1" width="723" height="506" class="alignnone wp-image-57" /></a>

<a href="https://msdnshared.blob.core.windows.net/media/2017/05/23.png"><img src="https://msdnshared.blob.core.windows.net/media/2017/05/23-300x300.png" alt="2" width="728" height="728" class="alignnone wp-image-66" /></a>

After doing this external content type successfully gets created the using SharePoint Designer]]></content:encoded>
    </item>
    <item>
      <title>Users are unable to use the Drag and Drop functionality in SharePoint Environments</title>
      <link>https://docs.microsoft.com/archive/blogs/sujesh/users-are-unable-to-use-the-drag-and-drop-functionality-in-sharepoint-environments</link>
      <pubDate>Sat, 26 Mar 2016 12:08:33 GMT</pubDate>
      <dc:creator><![CDATA[sujeetsks]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/sujesh/2016/03/26/users-are-unable-to-use-the-drag-and-drop-functionality-in-sharepoint-environments/</guid>
      <description><![CDATA[Problem Description:
Users are unable to use the Drag and Drop functionality in SharePoint...]]></description>
      <content:encoded><![CDATA[<p><span style="text-decoration:underline;"><strong>Problem Description:</strong></span></p>
<p>Users are unable to use the Drag and Drop functionality in SharePoint Environments.</p>
<p>&nbsp;</p>
<p><strong><span style="text-decoration:underline;">Symptoms</span>:</strong></p>
<p>Fiddler trace indicated that there was 401 Unauthorized responses being seen during the upload requests.</p>
<p>&nbsp;</p>
<p><span style="text-decoration:underline;"><strong>Cause:</strong></span></p>
<p>The F5 virtual server&rsquo;s HTTP Profile -&gt; &ldquo;Response Chunking&rdquo; was set to &ldquo;unchunk&rdquo;</p>
<p>&nbsp;</p>
<p><span style="text-decoration:underline;"><strong>Resolution:</strong></span></p>
<p>The F5 virtual server&rsquo;s HTTP Profile -&gt; &ldquo;Response Chunking&rdquo; was set to &ldquo;selective&rdquo;</p>
<p>&nbsp;</p>
<p><span style="text-decoration:underline;"><strong>More information:</strong> </span></p>
<p>Response Chunking: specifies how the system handles HTTP content that is chunked by a server. The default is Selective. The behavior in each mode depends on whether the server sends chunked or unchunked responses.</p>
<p></p>
<p><strong>For content that is chunked:</strong></p>
<p>Preserve: Specifies that the system processes the HTTP content, and sends the response to the client unchanged.</p>
<p>Selective: Specifies that the system unchunks the HTTP content, processes the data, re-adds the chunk headers, and then sends the chunked request or response to the client. Note that for chunked content, this mode is the same as the Rechunk mode.</p>
<p>Unchunk: Specifies that the system removes the HTTP transfer encoding headers, removes the chunk headers, processes the HTTP content, and then sends the unchunked response to the client. The system closes the connection once it sends all data.</p>
<p>Rechunk: Specifies that the system unchunks the HTTP content, processes the data, re-adds the chunk headers, and then sends the chunked request or response to the client.</p>
<p></p>
<p><strong>For content that is unchunked:</strong></p>
<p>Preserve: Specifies that the system processes the HTTP content, and sends the response to the client unchanged.</p>
<p>Selective: Specifies that the system processes the HTTP content, and sends the response to the client unchanged.</p>
<p>Unchunk: Specifies that the system processes the HTTP content, and sends the response to the client unchanged.</p>
<p>Rechunk: Specifies that the system processes the HTTP content, adds the transfer encoding and chunk headers to the response, and then sends the chunked response to the client.</p>
<p><span>Additional Technical Details:</span></p>
<p><a href="https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fdevcentral.f5.com%2fquestions%2fhow-to-configure-sharepoint-2013-on-bigip&amp;data=01%7c01%7cbinuraj%40064d.mgd.microsoft.com%7c22a3a5f3d06640edfa7408d3396f4a7b%7c72f988bf86f141af91ab2d7cd011db47%7c1&amp;sdata=KYzySr0NAaaqODEDvdqMrPYq8w4Obfmlzj5fu%2f2IIWM%3d">https://devcentral.f5.com/questions/how-to-configure-sharepoint-2013-on-bigip&nbsp;</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Disable ESP Administrator to use Active Directory accounts for Authentication using VESPA DB</title>
      <link>https://docs.microsoft.com/archive/blogs/sujesh/disable-esp-administrator-to-use-active-directory-accounts-for-authentication-using-vespa-db</link>
      <pubDate>Tue, 22 Sep 2015 17:46:00 GMT</pubDate>
      <dc:creator><![CDATA[sujeetsks]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/sujesh/2015/09/22/disable-esp-administrator-to-use-active-directory-accounts-for-authentication-using-vespa-db/</guid>
      <description><![CDATA[In FAST ESP user administration, you accidently enabled &ldquo;This User will be authenticated by...]]></description>
      <content:encoded><![CDATA[<p></p>
<p><span style="font-family:verdana, geneva;font-size:medium;">In FAST ESP user administration, you accidently enabled &ldquo;This User will be authenticated by an external User Management System&rdquo; for the only Admin user and now after logout can&rsquo;t access ESP Admin GUI. Now the next time you try login using the same &ldquo;Admin&rdquo; account, you receive the below error &ndash;</span></p>
<p><span style="font-family:verdana, geneva;font-size:small;">&ldquo;There was a problem with your login request. Please verify that the username and password is correct. If you are still unable to log in please contact your administrator. [Try again.]&rdquo;</span></p>
<p><span style="font-family:verdana, geneva;font-size:medium;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/Error.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/Error.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/Error.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/Error.jpg" border="0" alt=" " /></a></span></p>
<p><span style="font-family:verdana, geneva;font-size:medium;">To fix this issue create &ldquo;Admin&rdquo; user in you AD and then finish the configuration steps given TechNet article: <b>FAST ESP / Enable ESP Administrator to use Active Directory accounts for Authentication - </b><a href="https://support.microsoft.com/en-us/kb/2441205">https://support.microsoft.com/en-us/kb/2441205</a></span></p>
<p><span style="font-family:verdana, geneva;font-size:medium;">Once you are able to login using the AD &ldquo;Admin&rdquo; account you can then revert back the original accidental changed.</span></p>
<p><span style="font-family:verdana, geneva;font-size:medium;">&nbsp;</span></p>
<p><span style="font-family:verdana, geneva;font-size:medium;">Alternately, you can follow the below steps to &ldquo;<b>Disable ESP Administrator to use Active Directory accounts for Authentication</b>&rdquo; by modifying the VESPA DB</span></p>
<p><span style="font-family:verdana, geneva;font-size:medium;">&bull;Log into the vespa db&nbsp;</span></p>
<p style="margin-left:30px;"><span style="font-family:verdana, geneva;font-size:small;">1. &nbsp;Execute the command: cd %FASTSEARCH%\rdbms\bin</span></p>
<p style="margin-left:30px;"><span style="font-family:verdana, geneva;font-size:small;">2. &nbsp;Execute the command: psql --username fast -p 16070 vespa (If prompted for password enter &lsquo;fast&rsquo;)</span></p>
<p><span style="font-family:verdana, geneva;font-size:medium;">&bull;Run the below query to view the user information</span></p>
<p><span style="font-family:verdana, geneva;font-size:medium;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size:small;">select * from espuser;</span></span></p>
<p><span style="font-family:verdana, geneva;font-size:medium;">&nbsp;</span></p>
<p><span style="font-family:verdana, geneva;font-size:medium;">It would show the results like this where value of &ldquo;imported&rdquo; column will be set to &ldquo;t&rdquo; for external users</span></p>
<p><span style="font-family:verdana, geneva;font-size:small;">vespa=# select * from espuser;</span></p>
<p><span style="font-family:verdana, geneva;font-size:small;">&nbsp; id&nbsp; | imported | name&nbsp; | email |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; password&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp; realname&nbsp;&nbsp;&nbsp; | userpreferencesid | linksid</span></p>
<p><span style="font-family:verdana, geneva;font-size:small;">------+----------+-------+-------+----------------------------------+---------------+-------------------+---------</span></p>
<p><span style="font-family:verdana, geneva;font-size:small;">1962 | f&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | user&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | 34713bd1f6da11114559900354032c6b |&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |</span></p>
<p><span style="font-family:verdana, geneva;font-size:small;">&nbsp;&nbsp;&nbsp; 0 | t &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;| admin |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | 34713bd1f6da11114559900354032c6b | Administrator |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 |</span></p>
<p><span style="font-family:verdana, geneva;font-size:small;">(2 rows)</span></p>
<p><span style="font-family:verdana, geneva;font-size:medium;">&nbsp;</span></p>
<p><span style="font-family:verdana, geneva;font-size:medium;">&bull;Run the below query to update the &ldquo;imported&rdquo; column value of the affected user</span></p>
<p><span style="font-family:verdana, geneva;font-size:small;">update espuser set imported = &#39;f&#39; where name = &#39;admin&#39;;</span></p>
<p><span style="font-family:verdana, geneva;font-size:medium;">&nbsp;</span></p>
<p><span style="font-family:verdana, geneva;font-size:medium;">It would complete like below</span></p>
<p><span style="font-family:verdana, geneva;font-size:small;">vespa=# update espuser set imported = &#39;f&#39; where name = &#39;admin&#39;;</span></p>
<p><span style="font-family:verdana, geneva;font-size:small;">UPDATE 1</span></p>
<p><span style="font-family:verdana, geneva;font-size:medium;">&nbsp;</span></p>
<p><span style="font-family:verdana, geneva;font-size:medium;">&bull;Verify if the data in espuser table was update</span></p>
<p><span style="font-family:verdana, geneva;font-size:small;">select * from espuser;</span></p>
<p><span style="font-family:verdana, geneva;font-size:medium;">&nbsp;</span></p>
<p><span style="font-family:verdana, geneva;font-size:medium;">It would show the results like this where value of &ldquo;imported&rdquo; column will be set to &ldquo;f&rdquo; for FAST internal users</span></p>
<p><span style="font-family:verdana, geneva;font-size:small;">vespa=# select * from espuser;</span></p>
<p><span style="font-family:verdana, geneva;font-size:small;">&nbsp; id&nbsp; | imported | name&nbsp; | email |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; password&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp; realname&nbsp;&nbsp;&nbsp; | userpreferencesid | linksid</span></p>
<p><span style="font-family:verdana, geneva;font-size:small;">------+----------+-------+-------+----------------------------------+---------------+-------------------+---------</span></p>
<p><span style="font-family:verdana, geneva;font-size:small;">1962 | f&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | user&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | 34713bd1f6da11114559900354032c6b |&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |</span></p>
<p><span style="font-family:verdana, geneva;font-size:small;">&nbsp;&nbsp;&nbsp; 0 | f &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;| admin |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | 34713bd1f6da11114559900354032c6b | Administrator |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 |</span></p>
<p><span style="font-family:verdana, geneva;font-size:small;">(2 rows)</span></p>
<p><span style="font-family:verdana, geneva;font-size:medium;">&nbsp;</span></p>
<p><span style="font-family:verdana, geneva;font-size:medium;">&bull;Restart the adminserver using below command</span></p>
<p><span style="font-family:verdana, geneva;font-size:small;">nctrl stop adminserver</span></p>
<p><span style="font-family:verdana, geneva;font-size:small;">nctrl start adminserver</span></p>
<p><span style="font-family:verdana, geneva;font-size:medium;">&nbsp;</span></p>
<p><span style="font-family:verdana, geneva;font-size:medium;">&bull;Login to the FAST home using the Admin account and the old password</span></p>
<p><span style="font-family:verdana, geneva;font-size:medium;">&bull;Once logged in using the &ldquo;Admin&rdquo; account, disable ESP Administrator to use Active Directory accounts for Authentication in User administration setting &ldquo;This User will be authenticated by an external User Management System&rdquo;</span></p>
<p><span style="font-family:verdana, geneva;font-size:medium;">&nbsp;</span></p>
<p><span style="font-family:verdana, geneva;font-size:medium;color:#ff0000;background-color:#ffffff;">Note:- Before making the changes in Vespa DB remember that editing database might lead you to an un-supported state</span></p>
<p></p>]]></content:encoded>
    </item>
    <item>
      <title>Creating and configuring 2 Search Service Application in same SharePoint 2013 farm - Having Multiple index</title>
      <link>https://docs.microsoft.com/archive/blogs/sujesh/creating-and-configuring-2-search-service-application-in-same-sharepoint-2013-farm-having-multiple-index</link>
      <pubDate>Thu, 07 May 2015 18:58:16 GMT</pubDate>
      <dc:creator><![CDATA[sujeetsks]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/sujesh/2015/05/07/creating-and-configuring-2-search-service-application-in-same-sharepoint-2013-farm-having-multiple-index/</guid>
      <description><![CDATA[Description: This is for specific need of having 2 different Search Indexes in the same farm and...]]></description>
      <content:encoded><![CDATA[<p><b><span style="text-decoration:underline;">Description</span></b><b>: </b>This is for specific need of having 2 different Search Indexes in the same farm and make use of both in a same Search center site. You can have different search topologies on different search service applications in the same farm.</p>
<p><b><span style="text-decoration:underline;">Steps</span></b></p>
<ul>
<li>Create 2 Search service application namely &ldquo;Search Service Application 1(Consuming)&rdquo; and &ldquo;Search Service Application 2(Publishing)&rdquo;</li>
</ul>
<p style="margin-left:30px;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/image001.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/image001.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/image001.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/image001.png" border="0" alt=" " /></a></p>
<ul>
<li>Create 2 web application &ldquo;SSA1&rdquo; and &ldquo;SSA2&rdquo; for 2 search center sites</li>
</ul>
<p style="margin-left:30px;">SSA1 <a href="https://sp:5001/">https://sp:5001/</a> &nbsp;</p>
<p style="margin-left:30px;">SSA2 <a href="https://sp:5002/">https://sp:5002/</a></p>
<p style="margin-left:30px;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/image003.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/image003.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/image003.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/image003.png" border="0" alt=" " /></a></p>
<ul>
<li>Create 2 Enterprise search center site collection on these web applications<b><span style="text-decoration:underline;"></span></b></li>
</ul>
<p style="margin-left:30px;">SSA1 site: <a href="https://sp:5001/sites/Search5001">https://sp:5001/sites/Search5001</a> &nbsp;&nbsp;(Consuming)</p>
<p style="margin-left:30px;">SSA1 site: <a href="https://sp:5002/sites/Search5002">https://sp:5002/sites/Search5002</a> &nbsp;&nbsp;(Publishing)</p>
<ul>
<li>Added 2 different content sources to each Search Service application as below</li>
</ul>
<p style="margin-left:30px;">For Search service application 1:</p>
<ol>
<li style="list-style-type:none;"><ol>
<li>Local SharePoint resource : <a href="https://sp:5001/">https://sp:5001</a></li>
</ol></li>
</ol>
<p style="margin-left:30px;">For Search service application 2:</p>
<ol>
<li style="list-style-type:none;"><ol>
<li>Local SharePoint resource : <a href="https://sp:5002/">https://sp:5002</a></li>
<li>Websites: <a href="https://onlinehelp.microsoft.com/en-in/bing/ff808487.aspx">https://onlinehelp.microsoft.com/en-in/bing/ff808487.aspx</a></li>
</ol></li>
</ol>
<ul>
<li>Perform full crawl on all the content sources in both the Search service applications</li>
<li>Change the proxy associations of the 2 web applications as given below, deselect the other search service application proxy</li>
</ul>
<p style="margin-left:30px;">SSA1 web application - Search Service Application 1&nbsp; [default]</p>
<p style="margin-left:30px;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/image006.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/image006.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/image006.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/image006.png" border="0" alt=" " /></a></p>
<p style="margin-left:30px;">SSA2 web application - Search Service Application 2&nbsp; [default]</p>
<p style="margin-left:30px;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/image008.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/image008.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/image008.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/image008.png" border="0" alt=" " /></a></p>
<ul>
<li>Verify if you can search and get the results on both the search center sites according to the content source added to it</li>
</ul>
<p style="margin-left:30px;"><a href="https://sp:5001/sites/Search5001/Pages/results.aspx?k=site">https://sp:5001/sites/Search5001/Pages/results.aspx?k=site</a></p>
<p style="margin-left:30px;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/image010.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/image010.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/image010.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/image010.png" border="0" alt=" " /></a></p>
<p style="margin-left:30px;"><a href="https://sp:5002/sites/Search5002/Pages/results.aspx?k=site">https://sp:5002/sites/Search5002/Pages/results.aspx?k=site</a></p>
<p style="margin-left:30px;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/image012.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/image012.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/image012.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/image012.png" border="0" alt=" " /></a></p>
<ul>
<li>Now open Search service application 1, go to Result sources</li>
<li>Add new result source with name &ldquo;SSA2&rdquo;</li>
</ul>
<p style="margin-left:30px;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/image014.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/image014.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/image014.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/image014.png" border="0" alt=" " /></a></p>
<ul>
<li>Configure this &ldquo;SSA2&rdquo; result source as below</li>
</ul>
<p style="margin-left:30px;">Protocol: Remote SharePoint</p>
<p style="margin-left:30px;">Remote service URL: <a href="https://sp:5002/sites/Search5002/">https://sp:5002/sites/Search5002/</a></p>
<p style="margin-left:30px;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/image016.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/image016.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/image016.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/image016.png" border="0" alt=" " /></a></p>
<ul>
<li>Go to consuming search center site -&gt; pages library -&gt; Create a page&nbsp; with name &ldquo;SSA2&rdquo;</li>
</ul>
<p style="margin-left:30px;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/image018.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/image018.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/image018.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/image018.png" border="0" alt=" " /></a></p>
<ul>
<li>Now go to site setting and then Search settings -&gt; Configure Search Navigation</li>
<li>Add link -&gt; Select the new created page &ldquo;SSA2&rdquo; with title &ldquo;SSA2&rdquo;</li>
</ul>
<p style="margin-left:30px;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/image020.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/image020.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/image020.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/image020.png" border="0" alt=" " /></a></p>
<ul>
<li>Edit the existing &ldquo;Everything&rdquo; link as &ldquo;SSA1&rdquo;</li>
</ul>
<p style="margin-left:30px;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/image022.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/image022.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/image022.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/image022.png" border="0" alt=" " /></a></p>
<ul>
<li>Click Ok to save and apply</li>
<li>Now consuming Search center site should look like below</li>
</ul>
<p style="margin-left:30px;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/image024.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/image024.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/image024.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/image024.png" border="0" alt=" " /></a></p>
<ul>
<li>Edit the search center site and edit the search result web-part query to display the results from result source created &ldquo;SSA2&rdquo;</li>
</ul>
<p style="margin-left:30px;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/image026.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/image026.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/image026.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/image026.png" border="0" alt=" " /></a></p>
<ul>
<li>Save the webpart and then the page.</li>
<li>Clicking the Search vertical links namely &ldquo;SSA1&rdquo; and &ldquo;SSA2&rdquo; will display results from corresponding search service application</li>
</ul>
<p style="margin-left:30px;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/image028.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/image028.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/image028.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/image028.png" border="0" alt=" " /></a>&nbsp; &nbsp; &nbsp; &nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/image030.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/image030.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/64/image030.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-64/image030.png" border="0" alt=" " /></a></p>
<p><strong>Note:- You can modify the result source or the search result web part query to display the results differently for both the Search service applications in the consuming search center site</strong></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/telligent.evolution.components.attachments/01/10464/00/00/03/64/92/48/Document.docx" original-url="https://blogs.technet.com/cfs-filesystemfile.ashx/__key/telligent-evolution-components-attachments/01-10464-00-00-03-64-92-48/Document.docx">Document.docx</a></p>]]></content:encoded>
    </item>
  </channel>
</rss>