My script halted while creating the MySite site collection.
--------------------------------------------------------------
- Applying object cache accounts to "https://mytestportal.ambac.com:443"...
- Granting i:0#.w|AMBAC\sp_superuser Full Control to https://mytestportal.ambac.com/...
- Granting i:0#.w|AMBAC\sp_superreader Full Read to https://mytestportal.ambac.com/...
- Done applying object cache accounts to "https://mytestportal.ambac.com:443"
- Checking for Site Collection "https://mytestportal.ambac.com"...
- Creating Site Collection "https://mytestportal.ambac.com"...
--------------------------------------------------------------
- Script halted!
Exception : Microsoft.SharePoint.PowerShell.SPCmdletException: The WebApplication doesn't use the
ContentDB specified.
at Microsoft.SharePoint.PowerShell.SPCmdletNewSite.CreateDataObject()
at Microsoft.SharePoint.PowerShell.SPNewCmdletBase`1.InternalProcessRecord()
at Microsoft.SharePoint.PowerShell.SPCmdlet.ProcessRecord()
TargetObject : Microsoft.SharePoint.PowerShell.SPCmdletNewSite
CategoryInfo : InvalidData: (Microsoft.Share...SPCmdletNewSite:SPCmdletNewSite) [New-SPSite],
SPCmdletException
FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletNewSite
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at CreateWebApp, E:\AutoSPInstaller\SP\AutoSPInstaller\AutoSPInstallerFunctions.ps1: line 2721
at CreateWebApplications, E:\AutoSPInstaller\SP\AutoSPInstaller\AutoSPInstallerFunctions.ps1:
line 2512
at Setup-Farm, E:\AutoSPInstaller\SP\AutoSPInstaller\AutoSPInstallerMain.ps1: line 204
at <ScriptBlock>, E:\AutoSPInstaller\SP\AutoSPInstaller\AutoSPInstallerMain.ps1: line 403
at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}
PSMessageDetails :
Comments: ** Comment from web user: SArthur **
--------------------------------------------------------------
- Applying object cache accounts to "https://mytestportal.ambac.com:443"...
- Granting i:0#.w|AMBAC\sp_superuser Full Control to https://mytestportal.ambac.com/...
- Granting i:0#.w|AMBAC\sp_superreader Full Read to https://mytestportal.ambac.com/...
- Done applying object cache accounts to "https://mytestportal.ambac.com:443"
- Checking for Site Collection "https://mytestportal.ambac.com"...
- Creating Site Collection "https://mytestportal.ambac.com"...
--------------------------------------------------------------
- Script halted!
Exception : Microsoft.SharePoint.PowerShell.SPCmdletException: The WebApplication doesn't use the
ContentDB specified.
at Microsoft.SharePoint.PowerShell.SPCmdletNewSite.CreateDataObject()
at Microsoft.SharePoint.PowerShell.SPNewCmdletBase`1.InternalProcessRecord()
at Microsoft.SharePoint.PowerShell.SPCmdlet.ProcessRecord()
TargetObject : Microsoft.SharePoint.PowerShell.SPCmdletNewSite
CategoryInfo : InvalidData: (Microsoft.Share...SPCmdletNewSite:SPCmdletNewSite) [New-SPSite],
SPCmdletException
FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletNewSite
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at CreateWebApp, E:\AutoSPInstaller\SP\AutoSPInstaller\AutoSPInstallerFunctions.ps1: line 2721
at CreateWebApplications, E:\AutoSPInstaller\SP\AutoSPInstaller\AutoSPInstallerFunctions.ps1:
line 2512
at Setup-Farm, E:\AutoSPInstaller\SP\AutoSPInstaller\AutoSPInstallerMain.ps1: line 204
at <ScriptBlock>, E:\AutoSPInstaller\SP\AutoSPInstaller\AutoSPInstallerMain.ps1: line 403
at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}
PSMessageDetails :
Comments: ** Comment from web user: SArthur **
Issue resolved. I used the Get-SPContentDatabase cmdlet to view the attached content DBs for my web applications. I noticed that my Portal had 2 content DBs so I double-checked my Web Application setup and realized I had the wrong DB name in my site collection section for both my Portal and MySiteHost. Once I corrected them. I used Dismount-SPContentDatabase cmdlet to detach the extra content database and restarted the script.