You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Get-TargetRessouce Function throws an terminating error if the Crawler Impact Rule does not exist.
Verbose logs
VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = ResourceGet,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' = root/Microsoft/Windows/DesiredStateConfiguration'.
VERBOSE: An LCM method call arrived from computer ServerName with user sid S-1-5-21-SID-SID-SID-SID.
VERBOSE: [ServerName]: [[SPSearchCrawlerImpactRule]DirectResourceAccess] Getting Crawler Impact Rule Setting for 'fileservice.contoso.com'
VERBOSE: [ServerName]: [[SPSearchCrawlerImpactRule]DirectResourceAccess] Executing as the local run as user CONTOSO\PsDscRunAccount
VERBOSE: [ServerName]: [[SPSearchCrawlerImpactRule]DirectResourceAccess] Leaving BeginProcessing Method of Get-SPEnterpriseSearchServiceApplication.
VERBOSE: [ServerName]: [[SPSearchCrawlerImpactRule]DirectResourceAccess] Leaving ProcessRecord Method of Get-SPEnterpriseSearchServiceApplication.
VERBOSE: [ServerName]: [[SPSearchCrawlerImpactRule]DirectResourceAccess] Leaving EndProcessing Method of Get-SPEnterpriseSearchServiceApplication.
VERBOSE: [ServerName]: [[SPSearchCrawlerImpactRule]DirectResourceAccess] Leaving BeginProcessing Method of Get-SPEnterpriseSearchSiteHitRule.
Object fileservice.contoso.com not found.
+ CategoryInfo : InvalidData: (Microsoft.Offic...archSiteHitRule:) [], CimException
+ FullyQualifiedErrorId : Microsoft.Office.Server.Search.Cmdlet.GetSearchSiteHitRule
+ PSComputerName : localhost
VERBOSE: [ServerName]: [[SPSearchCrawlerImpactRule]DirectResourceAccess] Leaving ProcessRecord Method of Get-SPEnterpriseSearchSiteHitRule.
VERBOSE: [ServerName]: [[SPSearchCrawlerImpactRule]DirectResourceAccess] Leaving EndProcessing Method of Get-SPEnterpriseSearchSiteHitRule.
The PowerShell DSC resource '[SPSearchCrawlerImpactRule]DirectResourceAccess' with SourceInfo '' threw one or more non-terminating errors while running the Get-TargetResource
functionality. These errors are logged to the ETW channel called Microsoft-Windows-DSC/Operational. Refer to this channel for more details.
+ CategoryInfo : InvalidOperation: (root/Microsoft/...gurationManager:String) [], CimException
+ FullyQualifiedErrorId : NonTerminatingErrorFromProvider
+ PSComputerName : localhost
VERBOSE: Operation 'Invoke CimMethod' complete.
VERBOSE: Time taken for configuration job to complete is 7.698 seconds
DSC configuration
Invoke-DscResource-Name SPSearchCrawlerImpactRule -ModuleName SharePointDSC -Method Get -Property @{
PsDscRunAsCredential=$CredName='fileservice.contoso.com'RequestLimit=32ServiceAppName="SearchService_Default"
}
Problem description
The Get-TargetRessouce Function throws an terminating error if the Crawler Impact Rule does not exist.
Verbose logs
DSC configuration
Suggested solution
Change
SharePointDsc/SharePointDsc/DSCResources/MSFT_SPSearchCrawlerImpactRule/MSFT_SPSearchCrawlerImpactRule.psm1
Line 63 in fd20715
to
$crawlerImpactRule = Get-SPEnterpriseSearchSiteHitRule -SearchService $params.ServiceAppName | Where-Object -FilterScript {$_.Site -eq $params.Name}
SharePoint version and build
Operating system the target node is running
PowerShell version and build the target node is running
SharePointDsc version
The text was updated successfully, but these errors were encountered: