A site collection could not be created as the provided managed path does not exist.

Topics: General Questions, Support
Jun 18, 2015 at 1:38 PM
Hi,

We are currently facing an issue during the configuration of Portal Web application/Site Collection using the autospinstaller tool. Note that we are using the 3.99 XML version.

Exception: Microsoft.SharePoint.PowerShell.SPCmdletException: A site collection could not be created as the provided managed path does not exist. Change the URL to use an existing managed path or create the missing managed path prior to calling this command.

below is the associated portion of the XML file:

<WebApplications AddURLsToHOSTS="true">
    <WebApplication Name="Portal">
        <Type>Portal</Type>
        <ApplicationPool>Portal</ApplicationPool>
        <Url>http://sp2013-auto</Url>
        <Port>80</Port>
        <UseHostHeader>false</UseHostHeader>
        <AddURLToLocalIntranetZone>true</AddURLToLocalIntranetZone>
        <GrantCurrentUserFullControl>true</GrantCurrentUserFullControl>
        <UseClaims>true</UseClaims>
        <UseBasicAuthentication>false</UseBasicAuthentication>
        <UseOnlineWebPartCatalog>false</UseOnlineWebPartCatalog>
        <Database>
            <Name>Content_Portal</Name>
            <DBServer></DBServer>
            <DBAlias Create="false">
                <DBInstance>SERVER\INSTANCE</DBInstance>
                <DBPort></DBPort>
            </DBAlias>
        </Database>
        <ManagedPaths>
            <ManagedPath explicit="false" relativeUrl="http://sp2013-auto/path/" />
        </ManagedPaths>
        <SiteCollections>
            <SiteCollection siteUrl="http://sp2013-auto/path/SiteCollectionAuto">
                <Name>Portal Home</Name>
                <Description>Portal Home Site</Description>
                <HostNamedSiteCollection>false</HostNamedSiteCollection>
                <Owner>ds\sharepoint.lab.admin</Owner>
                <CustomDatabase>Portal</CustomDatabase>
                <SearchUrl>http://SP2013Search</SearchUrl>
                <Template>SPSPORTAL#0</Template>
                <LCID>1033</LCID>
                <Locale>en-us</Locale>
                <Time24>false</Time24>
            </SiteCollection>
        </SiteCollections>
    </WebApplication>
</WebApplications>

Please note that we also tried <ManagedPath explicit="false" relativeUrl="http://sp2013-auto/path/" /> Hope you can help us.
Jun 18, 2015 at 1:50 PM
The managed path relativeurl is incorrect.
It should be:<ManagedPath explicit="false" relativeUrl="path" />


Cheers,
Ivan