SharePoint 2016 – Resolving error – Microsoft SharePoint Foundation Usage service application not found

SharePoint 2016 - Error : Microsoft SharePoint Foundation Usage service application not found
SharePoint 2016 - Error : Microsoft SharePoint Foundation Usage service application not found

Hi All,

Greetings for the day πŸ™‚ LIFE IS BEAUTIFUL πŸ™‚

Today new issue and resolution πŸ™‚

Background / Issue :

We were migrating our SharePoint 2013 application to SharePoint 2016. We are using database attachment method. One of the step in this migration process is “to deploy our custom solutions” to new environment – SharePoint 2016. So we started deploying our custom solutions in new SharePoint 2016 environment.

One of our solution creates custom category and area in diagnostic logging. While deploying this solution we have following error :

Microsoft SharePoint Foundation Usage service application not found

SharePoint 2016 - Error : Microsoft SharePoint Foundation Usage service application not found
Fig : SharePoint 2016 – Error : Microsoft SharePoint Foundation Usage service application not found

Cause :

  • Reason behind this error is – On our new SharePoint 2016 server there is no “Usage & Health Service Application” service application provisioned

What is “Usage & Health Service Application” service application :

  • Usage & Health Service Application is one of the most important Service Applications
  • This Service Application provides very important information on the Health & State of SharePoint Farm
  • In SharePoint 2016, Usage Service is collecting information on
    • Timer Service Monitoring
    • Event Logs
    • Performance Counters
    • Search Usage
    • Sandbox Usage,
    • Site Collection Usage and many others
  • This Service application is keep monitoring the resource, health & state associated with the SharePoint Farm and logs this information to Log Files on SharePoint Hive or any designated path along with SharePoint Logging DatabaseΒ β€œWSS_Logging” in SQL Server Database
  • This service application is not directly created from Central Administration from “Manage Service Application (/_admin/ServiceApplications.aspx)” page so we have option of PowerShell only

Solution / Approach : We provisioned “Usage & Health Service Application” service application using PowerShell and could deploy our solution successfully πŸ™‚

Following are the step by step PowerShell CMDLETs :

  • Start “SharePoint 2016 Management Shell” as
SharePoint 2016 -SharePoint 2016 - Launching SharePoint 2016 Management Shell
Fig : SharePoint 2016 – Launching SharePoint 2016 Management Shell
SharePoint 2016 - SharePoint 2016 Management Shell
Fig : SharePoint 2016 – SharePoint 2016 Management Shell
  • We will provision the “Usage service” as, we will use “New-SPUsageApplication” PowerShell CMDLET
New-SPUsageApplication -Name "Usage and Health Data Collection"
  • Once we have service application instance is in place, we will provision “Service Application Proxy” as
$serviceProxy = Get-SPServiceApplicationProxy | where {$_.TypeName -eq "Usage and Health Data Collection Proxy"}

$serviceProxy.Provision()

SharePoint 2016 - PowerShell script for provisioning "Usage and Health Data Collection" service application
Fig : SharePoint 2016 – PowerShell script for provisioning “Usage and Health Data Collection” service application
  • From Central Administration we could verify service application from “Manage Service Application (/_admin/ServiceApplications.aspx)” page as
SharePoint 2016 central administration - Manage Service Application page
Fig : SharePoint 2016 central administration – Manage Service Application page

Complete PowerShell:

PS C:\> New-SPUsageApplication -Name "Usage and Health Data Collection"

DisplayName          TypeName             Id
-----------          --------             --
Usage and Health ... Usage and Health ... d8f3c688-01c3-4913-b7d4-8730105e347b


PS C:\> $serviceProxy = Get-SPServiceApplicationProxy | where {$_.TypeName -eq "Usage and Health Data Collection Proxy"}

PS C:\> $serviceProxy.Provision()

Thanks for reading πŸ™‚ If its worth at least reading once, kindly please like and share πŸ™‚ SHARE ING IS CARING πŸ™‚

Share In Teams:

Enjoy the beautiful life πŸ™‚Β Have a FUN πŸ™‚ HAVE A SAFE LIFE πŸ™‚ TAKE CARE πŸ™‚

Prasham Sabadra

LIFE IS VERY BEAUTIFUL :) ENJOY THE WHOLE JOURNEY :) Founder of Knowledge Junction and live-beautiful-life.com, Author, Learner, Passionate Techie, avid reader. Certified Professional Workshop Facilitator / Public Speaker. Scrum Foundation Professional certificated. Motivational, Behavioral , Technical speaker. Speaks in various events including SharePoint Saturdays, Boot camps, Collages / Schools, local chapter. Can reach me for Microsoft 365, Azure, DevOps, SharePoint, Teams, Power Platform, JavaScript.

You may also like...

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: