AutoSPInstaller error – failed to create the ‘Cache Profiles’ list.
While installing SharePoint 2019 with AutoSPInstaller I encountered an error at the point it starts to create a site collection. Here is the error message:
Microsoft.SharePoint.SPException: Provisioning did not succeed. Details: Failed to create the
‘Cache Profiles’ list. OriginalException: Invalid field name.
This seemed to be down to the template selected, as when I set the Template field to SITEPAGEPUBLISHING#0 it continued without error.
Interesting. I got the same error today when trying to install SP2019, but after restarting autospinstaller, it went thru without further issues. I found this thread also talking about this, but no solution:
https://github.com/PowerShell/SharePointDsc/issues/990
Same here. I executed the script again without changing anything and it worked.
I also executed script second time and it worked without errors