0

I see the following errors in ULS when trying to create a new User Profile Service application for my on-premise 2013 server:

Application error when access /_admin/NewProfileServiceApplicationSettings.aspx, Error=Object reference not set to an instance of an object.  
 at Microsoft.SharePoint.WebControls.ContentDatabaseSection.OnLoad(EventArgs e)    
 at System.Web.UI.Control.LoadRecursive()    
 at System.Web.UI.Control.LoadRecursive()    
 at System.Web.UI.Control.LoadRecursive()    
 at System.Web.UI.Control.LoadRecursive()    
 at System.Web.UI.Control.LoadRecursive()    
 at System.Web.UI.Control.LoadRecursive()    
 at System.Web.UI.Control.LoadRecursive()    
 at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

System.NullReferenceException: Object reference not set to an instance of an object.   
 at Microsoft.SharePoint.WebControls.ContentDatabaseSection.OnLoad(EventArgs e)    
 at System.Web.UI.Control.LoadRecursive()    
 at System.Web.UI.Control.LoadRecursive()    
 at System.Web.UI.Control.LoadRecursive()    
 at System.Web.UI.Control.LoadRecursive()    
 at System.Web.UI.Control.LoadRecursive()    
 at System.Web.UI.Control.LoadRecursive()    
 at System.Web.UI.Control.LoadRecursive()    
 at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

I deleted the previous UPS application from the Manage Service Applications page and removed the three databases from the SQL server.

I've tried an iisreset and full reboot.

[edit] get-spcontentdatabase output:

Id               : 548d93e7-2984-499c-bbf6-bc438d214a1a
Name             : SP_Intranet_Content
WebApplication   : SPWebApplication Name=SharePoint - Intranet - 80
Server           : SQLSERVER\INSTANCE
CurrentSiteCount : 4

Id               : 043892fa-e4d9-4968-979a-ee1b23562bb0
Name             : SP_apps_Content
WebApplication   : SPWebApplication Name=SharePoint - apps - 80
Server           : SQLSERVER\INSTANCE
CurrentSiteCount : 1

Id               : 061144b3-91a9-48f9-a1f9-3ca117be2db2
Name             : SP_MySite_Content
WebApplication   : SPWebApplication Name=SharePoint - MySite - 80
Server           : SQLSERVER\INSTANCE
CurrentSiteCount : 1

[edit] powershell error message:

New-SPProfileServiceApplication : Default database services not found.
At line:1 char:1
+ New-SPProfileServiceApplication -Name "User Profile Service"
-ApplicationPool "U ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
    + CategoryInfo          : InvalidData: (Microsoft.Offic...viceApplication:
   SPCmdletNewProfileServiceApplication) [New-SPProfileServiceApplication], I
  nvalidOperationException
    + FullyQualifiedErrorId : Microsoft.Office.Server.UserProfiles.PowerShell.
   SPCmdletNewProfileServiceApplication

SharePoint Configuration tool:

farm details listed correctly but tries to recreate central admin site, error:

An exception of type Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException was thrown.  

Additional exception information: A SharePoint Central Administration service instance does not exist in the server 

farm and therefore the SharePoint Central Administration Web Application cannot be provisioned.  A SharePoint 

Central Administration service instance should have been created when the server was joined to a server farm.  To 

avoid this failure, you may have to disconnect and then reconnect this server to the server farm
  • Can you provide the full output of Get-SPContentDatabase? – Trevor Seward Mar 10 '16 at 16:16
0

Few trouble shooting steps below that will resolve the problem:

  1. make sure the apppool account has proper rights and its in good state meaning not locked.

2.Did you tried with powershell as some times the user context might not be taking it correctly.

  1. Be sure that your account to be in the farm admin group.

  2. Since the error is related to "object reference" problems. Verify the server is in farm and try running the config wizard so it will correct if there are any problems.

  3. re-verify all the patch levels on all the servers in the farm and install as needed.

  4. As a last choice, if you have tried all the above steps then try to move the service to a different server in the farm.

  • thanks for your reply, I've verified 1,3,5 and added the error messages from 2 & 6 to the original post – user21251 Mar 11 '16 at 16:36
  • so it shows that the server is not properly connected to the farm. can you correct that first and then create the user profile service. Also you dont need to host/provision the CA at multiple servers in the farm ideally one web server should be enough to host the CA for the Farm – kesava Mar 11 '16 at 21:28
  • thanks, any advice on correcting that? – user21251 Mar 14 '16 at 10:48
  • i would suggest to validate the sharepoint patches and install them.also remove the server from the same wizard and re-join. – kesava Mar 15 '16 at 0:31
  • thanks. having rejoined the farm I no longer have problems running the config wizard but I'm still seeing the object reference not set when attempting to create the UPA. I tested all the svc apps, only ones that don't get the error are excel, access, search, visio and work management services. – user21251 Mar 15 '16 at 12:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.