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
Get-SPContentDatabase
?