Can't create Site Collection in SharePoint 2019
See original GitHub issueDetails of the scenario you tried and the problem that is occurring
When using SharePointDSC to create a Custom minrole server using the Azure SharePoint 2019 image it throws an error for every Site Collection I try to create. New-SPSite works normally outside of DSC. Site Collections with the same settings can be built using New-SPSite in PowerShell or Central Admin
Verbose logs showing the problem
VERBOSE: [2018-11-29 14:11:35Z] [VERBOSE] [SPT019]:
[[SPSite]TeamSite] Performing the operation “New-SPSite” on target
“http://Portal2019.Actualdomainname.com”.
VERBOSE: [2018-11-29 14:11:58Z] [ERROR] Invalid field name.
{cbb92da4-fd46-4c7d-af6c-3128c2a5576e} http://portal2019.Actualdomainname.com
Suggested solution to the issue
This works fine in SharePoint 2013 and 2016. It only happens in 2019
The DSC configuration that is used to reproduce the issue (as detailed as possible)
SPWebApplication SharePointSites
{
Name = "SharePoint Sites"
ApplicationPool = $WebAppPoolName
ApplicationPoolAccount = $WebPoolManagedAccountCreds.UserName
AllowAnonymous = $false
DatabaseName = "SP$($ReleaseYear)_Sites_Content"
WebAppUrl = $PortalUrl
Port = 80
PsDscRunAsCredential = $SharePointSetupUserAccountcreds
DependsOn = "[SPFarm]CreateSPFarm"
}
SPWebApplication OneDriveSites
{
Name = "OneDrive"
ApplicationPool = $webAppPoolName
ApplicationPoolAccount = $WebPoolManagedAccountCreds.UserName
AllowAnonymous = $false
DatabaseName = "SP$($ReleaseYear)_Sites_OneDrive"
HostHeader = "OneDrive$($ReleaseYear).$($AdDomainName)"
WebAppUrl = $OneDriveUrl
Port = 80
PsDscRunAsCredential = $SharePointSetupUserAccountcreds
DependsOn = "[SPFarm]CreateSPFarm"
}
SPCacheAccounts WebAppCacheAccounts
{
WebAppUrl = "http://Portal$($ReleaseYear).$($AdDomainName)"
SuperUserAlias = "$DomainNetbiosName\$SuperUserAlias"
SuperReaderAlias = "$DomainNetbiosName\$SuperReaderAlias"
PsDscRunAsCredential = $SharePointSetupUserAccountcreds
DependsOn = "[SPWebApplication]SharePointSites"
}
SPCacheAccounts OneDriveCacheAccounts
{
WebAppUrl = "http://oneDrive$($ReleaseYear).$($AdDomainName)"
SuperUserAlias = "$DomainNetbiosName\$SuperUserAlias"
SuperReaderAlias = "$DomainNetbiosName\$SuperReaderAlias"
PsDscRunAsCredential = $SharePointSetupUserAccountcreds
DependsOn = "[SPWebApplication]OneDriveSites"
}
SPSite TeamSite
{
Url = $PortalUrl
OwnerAlias = "$($DomainNetbiosName)\$($SharePointSetupUserName)"
Name = "Root Demo Site"
Template = "STS#0"
PsDscRunAsCredential = $SharePointSetupUserAccountcreds
DependsOn = "[SPCacheAccounts]WebAppCacheAccounts"
}
SPSite MySiteHost
{
Url = $OneDriveUrl
OwnerAlias = "$($DomainNetbiosName)\$($SharePointSetupUserName)"
Name = "OneDrive"
Template = "SPSMSITEHOST#0"
PsDscRunAsCredential = $SharePointSetupUserAccountcreds
DependsOn = "[SPCacheAccounts]OneDriveCacheAccounts"
}
}
The operating system the target node is running
Version of SharePoint that is used (e.g. SharePoint 2016)
SharePoint 2019
Version and build of PowerShell the target node is running
Version of the DSC module that was used (‘dev’ if using current dev branch)
SharePoint DSC 3.0.0.0
Issue Analytics
- State:
- Created 5 years ago
- Comments:43 (26 by maintainers)
Top Results From Across the Web
SP2019 On-Prem: Error message on creating a site collection
Hello, my "normal" users should be able to create a site collection. This works normally via your personal homepage (click on "SharePoint" ...
Read more >Unable to create new site collections
I have a SharePoint 2019 farm. It's a new farm with just 17 site collections. I created two this morning. This afternoon when...
Read more >Unable to create sites in on premise 2019 farm
I have a 2019 farm with a few site collections. I noticed a few weeks ago I was no longer able to create...
Read more >SharePoint 2019 Unable to create site collections after ...
I installed the Aug 2021 CU to both my Dev and PreProd environments. In my PreProd environment I can no longer create a...
Read more >You are not allowed to create team sites when you click ...
Solution · Click the gear icon for the Tools menu, and then click Site settings. · Click Site Permissions. · On the ribbon,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
i’m not aware of any work to fix it - it may have already been done - it’s not something I’ve looked at in a while, but was pointed to this page when it came up related to something else. the bottom line - the problem is/was SharePoint, not anyone else’s tool/automation choice or implementation
Hi folks,
It’s worth noting this isn’t a specific issue with DSC or any other approach. It impacts every use of New-SPSite within a PoSh automation approach, and was a bug during pre-release and RTM builds. on any farm type. in some cases, reloading the snapin will allow the site creation. other times the entire process needs to be reloaded