Quantcast
Channel: AutoSPInstaller
Viewing all articles
Browse latest Browse all 2279

Commented Unassigned: Using SQL Server named instance and port cause User Profile Service creation to fail [22034]

$
0
0
If you use a named instance for SQL as well as a custom port (i.e., MYSERVER\SP,14331) the generated script block AutoSPInstaller-ScriptBlock.ps1 contains an invalid command to create a new Profile Service Application.

To fix, modify the following line to include quotes around the DBServer parameters:

AutoSpInstallerFunctions.ps1, Line 3444:
```
Write-Output "`$newProfileServiceApp = New-SPProfileServiceApplication -Name `"$userProfileServiceName`" -ApplicationPool `"$($applicationPool.Name)`" -ProfileDBServer `"$($profileDBServer)`" -ProfileDBName $profileDB -ProfileSyncDBServer `"$($syncDBServer)`" -ProfileSyncDBName $syncDB -SocialDBServer `"$($socialDBServer)`" -SocialDBName $socialDB -MySiteHostLocation $mySiteHostLocation $mySiteManagedPathSwitch" | Out-File $scriptFile -Width 400 -Append
```
Comments: ** Comment from web user: johndpalm **

Also in AutoSpInstallerFunctions.ps1:

Line 2246, change to:
```
$newServiceApplication = Invoke-Expression "$serviceNewCmdlet -Name `"$serviceName`" -ApplicationPool `$applicationPool -DatabaseServer `"$dbServer`" -DatabaseName `$serviceDB"
```
Line 5336:
```
-ServiceNewCmdlet "New-SPWordConversionServiceApplication -DatabaseServer `"$dbServer`" -DatabaseName $serviceDB -Default" `
```
Line 5814:
```
-ServiceNewCmdlet "New-SPAppManagementServiceApplication -DatabaseServer `"$dbServer`" -DatabaseName $serviceDB" `
```
Line 5844:
```
-ServiceNewCmdlet "New-SPSubscriptionSettingsServiceApplication -DatabaseServer `"$dbServer`" -DatabaseName $serviceDB" `
```
Line 5879:
```
-ServiceNewCmdlet "New-SPAccessServicesApplication -DatabaseServer `"$dbServer`" -Default" `
```
Line 5936:
```
-ServiceNewCmdlet "New-SPTranslationServiceApplication -DatabaseServer `"$dbServer`" -DatabaseName $translationDatabase -Default" `
```


Viewing all articles
Browse latest Browse all 2279

Trending Articles