Post Migrations popularity trends not pulling usage report's data. All the data showing 0's.
Issue : Usage report is showing up 0’s even though there are actual hits on the sites. Screenshot mentioned below.
Root Cause:
Verified and found that below two timer services ‘Last run time’ is showing up as N/A, due to which we are not getting the data to the Usage reports.
Analytics Timer Job for Search Service Application STG_Service_Search
Usage Analytics Timer Job for Search Application STG_Service_Search
All the remaining settings are fine.
Resolution Steps:
1.Delete old corrupted below timer jobs :
Analytics Timer Job for Search Service Application STG__Service_Search
Usage Analytics Timer Job for Search Application STG_Service_Search
$tj1= Get-SPTimerJob -Type Microsoft.Office.Server.Search.Analytics.AnalyticsJobDefinition
$tj1.delete()
$tj2= Get-SPTimerJob -Type Microsoft.Office.Server.Search.Analytics.UsageAnalyticsJobDefinition
$tj2.delete()
2. Recreate both deleted timer jobs again
$ssa = Get-SPEnterpriseSearchServiceApplication
$assembly = [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Server.Search")
$bindingflags = [System.Reflection.BindingFlags]::NonPublic, [System.Reflection.BindingFlags]::Static
======================
$jobtypes = @("Microsoft.Office.Server.Search.Analytics.UsageAnalyticsJobDefinition","Microsoft.Office.Server.Search.Analytics.AnalyticsJobDefinition")
# Register analytics timer jobs
foreach ($jobtype in $jobtypes)
{
$type = $assembly.GetType($jobtype)
$registerJob = $type.GetMethod("RegisterJob", $bindingflags)
$registerJob.Invoke($type, $ssa)
}
3. Check running schedule details of both new timer jobs:
$tj1= Get-SPTimerJob -Type Microsoft.Office.Server.Search.Analytics.AnalyticsJobDefinition
$tj2= Get-SPTimerJob -Type Microsoft.Office.Server.Search.Analytics.UsageAnalyticsJobDefinition
Its will show garbage values.
4. Run it again with below commands
$tj1= Get-SPTimerJob -Type Microsoft.Office.Server.Search.Analytics.AnalyticsJobDefinition
$tj1.RunNow()
--------------------------------------
$tj2= Get-SPTimerJob -Type Microsoft.Office.Server.Search.Analytics.UsageAnalyticsJobDefinition
$tj2.RunNow()
5. Now check new corrected running schedule:
$tj1= Get-SPTimerJob -Type Microsoft.Office.Server.Search.Analytics.AnalyticsJobDefinition
$tj2= Get-SPTimerJob -Type Microsoft.Office.Server.Search.Analytics.UsageAnalyticsJobDefinition
Validate the existing Existing Settings of Usage & Health Service application
After 24hours reports will be generated
No comments:
Post a Comment