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.