New-SPSite : The URL “http://SharePointUrl/” is in use as an alternate access URL or as the URL of a host header site. Please choose a different URL and try again.
This error occurs while creating SharePoint site collection. Error Occurs while executing below ps script: $web = Get-SPWebApplication http://spapp:1400/New-SPSite http://spapp:1400/ -OwnerAlias "ad\farmUser" -HostHeaderWebApplication $web -Name "Demo Team Site<Site name>" -Template