This project has moved and is read-only. For the latest updates, please go here.

Failure to Create User Profile Service Application and I have no clue why

Topics: Support
Dec 12, 2013 at 4:52 PM
Edited Dec 12, 2013 at 6:18 PM
SharePoint 2010

I cannot create the User Profile Service application because of the following error, however, I do have a site collection created for my site host on the same web app as my portal and I have indicated the correct template as required by the error message. Not sure what else to do. I'm using AutoSPInstallerGUI to configure my xml file.

Creating User Profile Service Application as devlab\svcdev...
New-SPProfileServiceApplication : The site specified by the MySiteHostLocation
parameter must either use the "SPSMSITEHOST#0" template or have no template app
At C:\Users\svcdev\AppData\Local\Temp\2\AutoSPInstaller-ScriptBlock.ps1:3 char:
  • $newProfileServiceApp = New-SPProfileServiceApplication <<<< -Name "User Pro
    file Service Application" -ApplicationPool "SharePoint Hosted Services" -Profil
    eDBServer Cronus -ProfileDBName Profile -ProfileSyncDBServer Cronus -ProfileSyn
    cDBName Sync -SocialDBServer Cronus -SocialDBName Social -MySiteHostLocation ht
    tp://cronus/ -MySiteManagedPath "my/personal"
    • CategoryInfo : InvalidArgument: (Microsoft.Offic...viceApplicat
      ion:SPCmdletNewProfileServiceApplication) [New-SPProfileServiceApplication
      ], InvalidOperationException
    • FullyQualifiedErrorId : Microsoft.Office.Server.UserProfiles.PowerShell.
C:\Users\svcdev\AppData\Local\Temp\2\AutoSPInstaller-ScriptBlock.ps1 : - Faile
d to create User Profile Service Application
At line:1 char:69
  • C:\Users\svcdev\AppData\Local\Temp\2\AutoSPInstaller-ScriptBlock.ps1 <<<<
    • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorExcep
    • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorExceptio
Press any key to exit...

Pressing any key just places me into a constant loop.

Thanks for the help
Dec 12, 2013 at 6:50 PM
User error, solved my own issue.
Marked as answer by Frank2013 on 12/12/2013 at 10:50 AM
Dec 13, 2013 at 8:51 PM
Great, and thanks for marking your response as the answer :)

Jun 5, 2014 at 2:55 PM
hi Frank2013, I'm having the same issue. Could you please post what the resolution was for you?

Jul 2, 2014 at 10:24 AM
Edited Jul 2, 2014 at 10:24 AM
I can only assume that the issue was with the My Sites site collection template ID.

I stumbled across this error when the template it was set to STS#0 on this section where SPSMSITEHOST#0 should be:
    <WebApplication type="MySiteHost" name="MySite Host" applicationPool="MySites" url="http://mysites" port="80" UseHostHeader="true" AddURLToLocalIntranetZone="true" GrantCurrentUserFullControl="true" useClaims="true" useBasicAuthentication="false" useOnlineWebPartCatalog="false">
        <DBServer />
        <DBAlias Create="false" DBInstance="SERVER\INSTANCE" DBPort="" />
        <ManagedPath relativeUrl="personal" explicit="false" />
        <SiteCollection siteUrl="http://mysites" HostNamedSiteCollection="false" Owner="dev\sp2013admin" Name="My Sites" Description="My Sites" SearchUrl="http://localhost/search" CustomTemplate="false" Template="SPSMSITEHOST#0" LCID="1033" Locale="en-us" Time24="false" />
Hope this helps.