The SharePoint Server Publishing Infrastructure feature must be activated at the site collection level before the Publishing feature can be activated.

Hi All,
I am trying to activate the Publishing feature for a SharePoint website using a custom Site Definition File. The problem I am getting
is when I try to use the custom site template I get an error message:
New-SPSite : The SharePoint Server Publishing Infrastructure feature must be activated at the site collection level before the Publishing feature can be activated.
The custom
Site Definition File snippet is show below:
<?xml
version="1.0"
encoding="utf-8"?>
<Project
Title="SiteDefinition1"
Revision="2"
ListDir=""
xmlns:ows="Microsoft
SharePoint"
xmlns="http://schemas.microsoft.com/sharepoint/">
  <NavBars>
  </NavBars>
  <Configurations>
    <Configuration
ID="0"
Name="SiteDefinitionDelegateControls2">
      <Lists/>
      <SiteFeatures>
        <!--Document
Set-->     
        <Feature
ID="{3bae86a2-776d-499d-9db8-fa4cdc7884f8}"
Name="FeatureDefinition/15/3bae86a2-776d-499d-9db8-fa4cdc7884f8"
/>
        <!--Publishing
Prerequisites-->     
        <Feature
ID="{a392da98-270b-4e85-9769-04c0fde267aa}"
Name="FeatureDefinition/15/a392da98-270b-4e85-9769-04c0fde267aa"
/>
      ...Other Site Features
      </SiteFeatures>
     <WebFeatures>
        <!--2
Publishing Web-->
     <Feature
ID="{94c94ca6-b32f-4da9-a9e3-1f3d343d7ecb}"
Name="FeatureDefinition/15/94c94ca6-b32f-4da9-a9e3-1f3d343d7ecb"/>
     ... Other Web Features
      </WebFeatures>
      <Modules>
        <Module
Name="DefaultBlank"
/>
      </Modules>
    </Configuration>
  </Configurations>
  <Modules>
    <Module
Name="DefaultBlank"
Url=""
Path="">
      <File
Url="default.aspx">
      </File>
    </Module>
  </Modules>
</Project>
I hope you can help
Colin

As the error says.  The Publishing Infrastructure feature must be activated at the Site Collection level where you are creating a new site PRIOR to turning on the Publishing feature.  So if you are trying to use this site definition to create a
new Site Collection then its not going to work.  If you are trying to create a sub site then make sure that Publishing Infrastructure is enabled in the site collection before trying to create a sub site with this site definition.
Internally Microsoft does this for the Publishing Portals using custom code.  Here's an article that discusses how to do it in SharePoint 2010.  
http://msdn.microsoft.com/en-us/library/office/gg615465(v=office.14).aspx
Compare what's in the article to one of the Publishing templates available out of the box in 2013 and you should be able to find the assembly that is used to load the Publishing features.
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem.

Similar Messages

  • Ran into a problem by activating the SharePoint Server Publishing feature

    By activating the "SharePoint Server Publishing feature"  at site level the complete look and feel of the site has been changed to a default page layout , all the customization's were removed.
    Changes were not rolled back even after deactivating the feature.
    any help on how to get back my look and feel is appreciated.
    Thanks in advance.
    Regards
    Bhaskar
     

    Hi,
    How did you customize the site initially? Was that in SharePoint designer? And if so what part of it did you exactly customize? The page itself or the masterpage?
    Regards,
    Casper

  • Install and configuration on the SharePoint server 2007 issue

    Hi All,
               I have Microsoft Sharepoint 2007 on Windows 2003 and I am trying to Integrate Adobe Lifecycle Rights Management Server which is on Windows 2008 R2 server.
              I am trying to Install and configuration on the SharePoint server 2007 but during installation getting error "Failure adding assembly to the cache: Unknown Error"
    Please check the Edited install.bat file and error log.
    Install.bat
    set _my_datetime=%date% %time%
    @echo on
    echo Begin Installation at %_my_datetime%
    echo "Customize <VER> <PORT> <SharepointServerNameOrIP> <SiteDirectory> <siteName> in this install.bat . Verify gacutil.exe path."
    @echo off
    @SET GACUTILEXE="C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\gacutil.exe"
    @SET TEMPLATEDIR="C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE"
    @SET RESOURCESDIR="C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\Resources"
    @SET WEBAPPDIR="C:\Inetpub\wwwroot\wss\VirtualDirectories\80"
    @SET SITEURL="http://sharepoint7:80/sites/DCADC"
    @SET STSADM="C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\STSADM.EXE"
    REM      cd $(ProjectDir)
    %GACUTILEXE% /nologo /i AdobeLCSharepoint.dll /f
    %GACUTILEXE% /nologo /i AdobeLiveCycleConnector.dll /f
    %GACUTILEXE% /nologo /i AdobeLiveCycleWorkflow.dll /f
    pushd %TEMPLATEDIR%\features
          Echo Deactivating LiveCycle Connector feature with WSS
          %STSADM% -o deactivatefeature -filename  LiveCycle\feature.xml  -url %SITEURL% -force
          Echo Deactivating LiveCycle Workflow feature with WSS
          %STSADM% -o deactivatefeature -name LiveCycle/Workflow -url %SITEURL% -force
          Echo Uninstalling LiveCycle Connector with WSS
          %STSADM% -o uninstallfeature -filename  LiveCycle\feature.xml -force
          Echo Uninstalling LiveCycle Workflow with WSS
          %STSADM% -o uninstallfeature -name  LiveCycle/Workflow -force
    popd
          Echo Copying source files to WSS \TEMPLATE directory
          xcopy TEMPLATE %TEMPLATEDIR% /e /y /i
          Echo Copying Feature Resource files to WSS 12\Resources directory
          xcopy Resources %RESOURCESDIR% /e /y /i
          Echo Copying Resource files to %WEBAPPDIR%\App_GlobalResources directory
          xcopy App_GlobalResources %WEBAPPDIR%\App_GlobalResources /e /y /i
    pushd %TEMPLATEDIR%\features
          Echo Installing LiveCycle Connector  with WSS
          %STSADM% -o installfeature -filename  LiveCycle\feature.xml -force
          Echo Installing LiveCycle Workflow with WSS
          %STSADM% -o installfeature -name  LiveCycle/Workflow -force
          Echo Activating LiveCycle Connector  with WSS
          %STSADM% -o activatefeature -filename  LiveCycle\feature.xml  -url %SITEURL% -force
          Echo Activating LiveCycle Workflow with WSS
          %STSADM% -o activatefeature -name LiveCycle/Workflow -url %SITEURL% -force
    popd
          Echo Restarting IIS worker process
          IISRESET
    set _my_datetime=%date% %time%
    @echo on
    echo End Installation at %_my_datetime%
    @echo off
    Error Log
    E:\Adobe LiveCycle Connector-2007>set _my_datetime=Wed 08/22/2012 14:40:28.27
    E:\Adobe LiveCycle Connector-2007>echo Begin Installation at Wed 08/22/2012 14:40:28.27 
    Begin Installation at Wed 08/22/2012 14:40:28.27
    E:\Adobe LiveCycle Connector-2007>echo "Customize <VER> <PORT> <SharepointServerNameOrIP> <SiteDirectory> <siteName> in this install.bat . Verify gacutil.exe path."
    "Customize <VER> <PORT> <SharepointServerNameOrIP> <SiteDirectory> <siteName> in this install.bat . Verify gacutil.exe path."
    Failure adding assembly to the cache: Unknown Error
    Failure adding assembly to the cache: Unknown Error
    Failure adding assembly to the cache: Unknown Error
    Deactivating LiveCycle Connector feature with WSS
    Operation completed successfully.
    Deactivating LiveCycle Workflow feature with WSS
    Operation completed successfully.
    Uninstalling LiveCycle Connector with WSS
    Operation completed successfully.
    Uninstalling LiveCycle Workflow with WSS
    Operation completed successfully.
    Copying source files to WSS \TEMPLATE directory
    TEMPLATE\FEATURES\LiveCycle\Elements.xml
    TEMPLATE\FEATURES\LiveCycle\Feature.xml
    TEMPLATE\FEATURES\LiveCycle\Workflow\feature.xml
    TEMPLATE\FEATURES\LiveCycle\Workflow\workflow.xml
    TEMPLATE\IMAGES\LiveCycle\applyPolicy.png
    TEMPLATE\IMAGES\LiveCycle\applyReaderExtn.png
    TEMPLATE\IMAGES\LiveCycle\createPdf.png
    TEMPLATE\IMAGES\LiveCycle\liveCycle.gif
    TEMPLATE\IMAGES\LiveCycle\pdficon_small.gif
    TEMPLATE\LAYOUTS\LiveCycle\ApplyPolicy.aspx
    TEMPLATE\LAYOUTS\LiveCycle\ApplyReaderExtensions.aspx
    TEMPLATE\LAYOUTS\LiveCycle\GeneratePDF.aspx
    TEMPLATE\LAYOUTS\LiveCycle\InvokeGenericProcess.aspx
    TEMPLATE\LAYOUTS\LiveCycle\LiveCycleSettings.aspx
    TEMPLATE\LAYOUTS\LiveCycle\LoggingSettings.aspx
    TEMPLATE\LAYOUTS\LiveCycle\Workflow\LCWorkflowSettings.aspx
    16 File(s) copied
    Copying Feature Resource files to WSS 12\Resources directory
    Resources\AdobeLiveCycleConnectorCore.de-DE.resx
    Resources\AdobeLiveCycleConnectorCore.de.resx
    Resources\AdobeLiveCycleConnectorCore.en-US.resx
    Resources\AdobeLiveCycleConnectorCore.en.resx
    Resources\AdobeLiveCycleConnectorCore.fr-FR.resx
    Resources\AdobeLiveCycleConnectorCore.fr.resx
    Resources\AdobeLiveCycleConnectorCore.ja-JP.resx
    Resources\AdobeLiveCycleConnectorCore.ja.resx
    Resources\AdobeLiveCycleConnectorCore.resx
    9 File(s) copied
    Copying Resource files to "C:\Inetpub\wwwroot\wss\VirtualDirectories\80"\App_GlobalResources directory
    App_GlobalResources\AdobeLiveCycleConnector.de-DE.resx
    App_GlobalResources\AdobeLiveCycleConnector.de.resx
    App_GlobalResources\AdobeLiveCycleConnector.en-US.resx
    App_GlobalResources\AdobeLiveCycleConnector.en.resx
    App_GlobalResources\AdobeLiveCycleConnector.fr-FR.resx
    App_GlobalResources\AdobeLiveCycleConnector.fr.resx
    App_GlobalResources\AdobeLiveCycleConnector.ja-JP.resx
    App_GlobalResources\AdobeLiveCycleConnector.ja.resx
    App_GlobalResources\AdobeLiveCycleConnector.resx
    App_GlobalResources\AdobeLiveCycleWorkflow.de-DE.resx
    App_GlobalResources\AdobeLiveCycleWorkflow.de.resx
    App_GlobalResources\AdobeLiveCycleWorkflow.en-US.resx
    App_GlobalResources\AdobeLiveCycleWorkflow.en.resx
    App_GlobalResources\AdobeLiveCycleWorkflow.fr-FR.resx
    App_GlobalResources\AdobeLiveCycleWorkflow.fr.resx
    App_GlobalResources\AdobeLiveCycleWorkflow.ja-JP.resx
    App_GlobalResources\AdobeLiveCycleWorkflow.ja.resx
    App_GlobalResources\AdobeLiveCycleWorkflow.resx
    18 File(s) copied
    Installing LiveCycle Connector  with WSS
    Operation completed successfully.
    Installing LiveCycle Workflow with WSS
    Operation completed successfully.
    Activating LiveCycle Connector  with WSS
    Operation completed successfully.
    Activating LiveCycle Workflow with WSS
    Operation completed successfully.
    Restarting IIS worker process
    Attempting stop...
    Internet services successfully stopped
    Attempting start...
    Internet services successfully restarted
    E:\Adobe LiveCycle Connector-2007>echo End Installation at Wed 08/22/2012 14:41:00.29 
    End Installation at Wed 08/22/2012 14:41:00.29
    Waiting...
    Regards,
    Amol Sahare

    This might be an issue with the gacutil that you are using. I have used the gacutil that comes with Microsoft SDK.
    You can install Microsoft SDK from http://www.microsoft.com/en-us/download/details.aspx?id=3138

  • The Specified name is already in use while activating Publishing feature at site collection level in Moss2007

    Hi,
    Please suggest on this "The Specified name is already in use while activating Publishing feature at site collection level in Moss2007"
    The specified name is already in use.
    A list, survey, discussion board, or document library cannot have the same name as another list, survey, discussion board, or document library in this Web site.  Use your browser's Back button, and type a new name.   at Microsoft.SharePoint.Library.SPRequestInternalClass.CreateList(String
    bstrWebUrl, String bstrTitle, String bstrDescription, String bstrListUrl, String bstrFeatureId, Int32 lTemplateID, String bstrDocTemplateType, ListQuickLaunchOptions qlOpt)
       at Microsoft.SharePoint.Library.SPRequest.CreateList(String bstrWebUrl, String bstrTitle, String bstrDescription, String bstrListUrl, String bstrFeatureId, Int32 lTemplateID, String bstrDocTemplateType, ListQuickLaunchOptions qlOpt)  

    there are some OutBox list/libraries being created when you activate publishing features, make sure those names not being used: check this post for more detail..
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/f7e93d26-c2a1-42c2-b191-dc48f734684b/the-specified-name-is-already-in-use-error?forum=sharepointgenerallegacy
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • How come My Sites can only be created when logged directly onto the Sharepoint Server?

    Hello Community
       In Synchronization I populate the container with OU's that contain
    Service accounts, user accounts created in the Sharepoint farm and a
    domain local group containing a OU with all of the trusted user accounts.
       AFter populating the container I perform a User Profile Synchronization.
       After the User Profile Synchronization finishes MIISClient shows "success"
    including the OU containing the trusted user accounts.
       Although I cannot Find all of the trusted users individually in Manage User Profile I
    can find them with the peoplepicker when I add them to the web application
    and the My Site Host application.
       The problem is if I logon directly onto the Sharepoint server with an account created
    in the Sharepoint farm I can create a My Site with that account. But if a trusted user
    logs onto their computer and tries to create a My Site they get an error stating
    the page can't be displayed.
        Even if I click "sign on as a different user" on the trusted user computer
    and with a user account that was created in the Sharepoint farm and try to create a
    My Site I get the error stating the page can't be displayed.
        The reason the page can't be displayed on the trusted users computer is because although
    it can access the My Site Host application it cannot access its default.aspx page.
        So the question is how come when creating a My Site the My Site Host default.aspx page
    cannot be accessed from the trusted user computer but when creating a My Site directly on
    the Sharepoint Server the default.aspx page can be accessed and the trusted user and/or the
    user account created in the farm can access the default.aspx page and create a My Site?
        Thank you
        Shabeaut

    What does that mean "trusted user computer"?
    How many servers you have in farm?
    Are you using a single domain or there are multiple domains involved ?
    Regards,
    Pratik Vyas | SharePoint Consultant |
    http://sharepointpratik.blogspot.com
    Posting is provided AS IS with no warranties, and confers no rights
    Please remember to click Mark As Answer if a post solves your problem or
    Vote As Helpful if it was useful.

  • The question about the sharepoint server 2010 install

    Hi Friends,
    i have a question about the sharepoint server 2010 install. 
    my computer is used the windows server 2008 service pack 1. in order to install the sharepoint 2010 server, i need to choose to windows server 2008 service pack 2. my question is when i install the windows server 2008 service pack 2,whether the inside
    of my computer  information will be lost or change? 
    thank you in advance. 
    Qearl

    Hi ,
    No data will be lost either from your Windows program files or other drives as long as it is an upgrade.
    After upgrade you will still be able to see your old program files under windows.ol folder in the C: Drive of the new OS.
    The data will be lost only when you perform a clean install like complete formatting the HArd disk and installing from scratch.
    As mentioned it always good to maintain a backup preferable important files in a skydrive as there is a good chance of external drives crashing.

  • Document ID - Property field shows on item view property page after deactivating the Document ID Service features at Site Collection level

    Hi,
    When a site collection was created, I enabled the Document ID feature at site collection level.  Then some item was created in a document library as well as list libarary
    Now it was decided that we dont want the Document ID feature so I disable the feature from Collection feature list
    Still when a user view the property of a document it shows the Document ID property with the ID (when click on the ID it shows the message that 
    This Site Collection is not configured to use Document IDs.
    Troubleshoot
    issues with Microsoft SharePoint Foundation.
    Correlation ID: 9640ac9f-4b9c-4ae8-9f0b-402ed7e3b3c5)     Is there anything that I should do so that DOcument ID property does not show on the document property page... I tried
    to looked at the content type to see if I can remove the document ID but I could not find the Document ID as a property that can be removed from the type

     
    Hi,
    I would just remove the column from the view.  You can make views for each list, it you look under the list by Clicking List while the list is open, you should see a link in the ribbon which say "Modify view" click this link. 
    This link will open the edit view page you can then uncheck the box for the column which will remove it form that view.
    According to this
    http://msdn.microsoft.com/en-us/library/ee559302.aspx
    Deactivating the feature removes links to the Site Collection Settings page, makes the page that is used to look up document IDs no longer available, turns off the document ID service, and stops assigning document IDs. The server does not remove the columns
    that it adds at the site level when the feature is first activated so that, even after deactivation, the existing document IDs are preserved. After the feature is deactivated, users who try to use a static URL to look up an item by its document ID see an error
    message indicating that "This Site Collection is not configured to use document IDs."
    The Document id service will add new columns to the document content type and the document set content type. 
    It also adds an event receiver which should be deactivated when you deactivate the doc id service. 
    Theoretically.  You should be able to go in and remove the columns from the document type, and then force an update.
    Thanks,
    Rock Wang
    Rock Wang TechNet Community Support

  • Destination disabled. []: [CrystalEnterprise.Ftp]. Please note the name of the job server used for your request and contact your system administrator to make sure the specified destination is enabled. (FWB 00031)

    Hi
    In BO 4.0 SP 9 when a administrator tries to schedule a report via CMC there is no error
    But when a user schedules a report and the destination is FTP location -> Use default settings he gets following error
    Destination disabled. []: [CrystalEnterprise.Ftp]. Please note the name of the job server used for your request and contact your system administrator to make sure the specified destination is enabled. (FWB 00031)
    There is only one Job Server and the destinations are enabled in it
    There is no Job server for Crystal Reports Job Server
    Do i need to create it and how.

    Please check if you have proper rights to schedule to FTP. You can create a new job server, whenever you schedule it, there are multiple job servers, it will handle based on the load. But it is not mandatory, depends on the load.

  • How can i add a special user to the "site collection administrators" of the personal site on sharepoint online when the personal site is creating ?

    when a new personal site is created on the sharepoint online 2013, then the administrator of this personal site will be himself. we can add another person to the "site collection administrators", then this person have full control of this personal
    site.
    but my request is : add this personal to the personal site when the personal site is creating, but not after the personal site has created ?
    Is anybody know how to do that?

    Hi,
    According to your post, my understanding is that you want to add a special user to the "site collection administrators" of the personal site on sharepoint online when the personal site is creating.
    Per my knowledge,
    there is no out of the box way to accomplish this with SharePoint.
    This is a forum which is supported for SharePoint On-Premise.
    Regarding SharePoint Online, for quick and accurate answers to your questions, it is recommended that you initial a new thread in Office 365 forum.
    Office 365 forum
    http://community.office365.com/en-us/forums/default.aspx
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • A connection to the QuickTime server could not be established. This computer may be having trouble accessing the Internet or the server may be offline

    When I select “Update existing software in QuickTime Pro I get an error message saying “A connection to the QuickTime server could not be established. This computer may be having trouble accessing the Internet or the server may be offline”
    This has persisted for several weeks. Any help will be welcomed as I do not know how to contact QuickTime support via Apple.
    I am using Windows 7 64 bit.  
    Many thanks

    I was able to download and install the latest version of iTunes  (10.6.3.25) without a hitch. After the reboot I tried again to update my exisitng Quicktime Pro software as described in my original posting and got exactly the same error message.
    If it happens that there is no software to download because I am already running the latest version, surely a message to that effect would appear and not the one saying “A connection to the QuickTime server could not be established. This computer may be having trouble accessing the Internet or the server may be offline”
    Still seeking advice if possible
    Cheers

  • When I start ffox I want the same 2 tabs to open EVERY time no matter what sites I have visited in previos session - can I achieve this

    when I start ffox I want the same 2 tabs to open EVERY time no matter what sites I have visited in previos session - can I achieve this

    In the home page setting you need to use a pipe (|) symbol as separator.
    See [[How to set the home page]]
    You can also create or modify a Firefox desktop shortcut and add the two URLs to the target field of that shortcut.
    In that case you need to separate the URLs with a space.
    "C:\Program Files\Mozilla Firefox\firefox.exe" http://site1.com http://site2.com

  • HT201441 I buy may iPhone 5 from the UK store ,, It s A new one and no one has used it before ,, the problem that it asked for an other apple ID !!! ,, my order for my iPhone is here in the UK store .. what should i do now ????     ,,, help me please

    I buy may iPhone 5 from the UK store ,, It s A new one and no one has used it before ,, the problem that it asked for an other apple ID !!! ,, my order for my iPhone is here in the UK store .. what should i do now ????     ,,, help me please

    Take it back and ask for a refund or a replacement.

  • My email account in Mail.app is IMAP, but when I delete emails, they don't delete from other devices connected to the mail server with IMAP. Deleted mail on other devices delete as normal from the server and thus from other devices as normal.

    MacBook Pro, late 2011 version. Up to date Mountain Lion.
    My email account in the Mail.app is set up as IMAP, but when I delete emails in the Mac Mail App, they are not deleted from the mail clients of the other devices that are connected to the mail server with IMAP. IMAP works perfectly between Windows Outlook 2010, iPad Mail App and Android default mail client. Deleted messages behave correctly, as in delete from one device and the mail is deleted from all devices.
    Having just tested in reverse order on the Mac; emails deleted from the email client on Windows, iPad and Android are not deleted in the Mac Mail App.  It appears that the account is behaving like POP rather than IMAP.
    Any advice on how to have IMAP work correctly on the MacBook Pro Mail.app?
    Thank you.

    Hi Csound1, thanks. The email host is 1and1.co.uk, however, i am going to fess up and make myself look like a plonker now -
    the email account in question was set up in Outlook as POP - stupid, stupid, stupid me, wasted an afternoon on this!  I have now changed the Outlook account to IMAP and Mail.app works perfectly - and looks much nicer than Outlook did.  Im in the middle of converting from Windows to a Mac, and still finding my way around the Mac
    The lesson learned, never assume - always double  check!  All my other email addresses with 1and1 are all imap, except this one, and it happened to be the first one I set up in the Mail.app. (bows head in disgrace!)
    Thank you anyway for attempting to help me!
    Cheers

  • Two different site collection cannot use the same Term Set . Is there any solution for this ?

     I can save department site collection as site collection template. Also I can use this template for a new department site collection creation.
    But Managed Meta data Navigation throws the following error
    •Error loading navigation: The Managed Navigation term set is improperly attached to the site. (Correlation ID: 6fa6b19c-820a-001d-b9e0-d939d702050a)

    Hi ,
    this is a limitation. please refer this
    http://social.technet.microsoft.com/forums/sharepoint/en-US/029b7e2e-661f-4ac3-bfcb-eb99b43016f2/the-selected-term-set-is-already-used-by-another-site
    Unfortunately in SP 2013, a termset can only be used by a single site collection for navigation. This is a known limitation. There is no out of the box way to use a central termset to manage navigation across site collections. You need to develop a custom sitemap
    provider to do that.
    Another way to do this is to create termset for each site collection and reuse/pin the terms from the central termset instead of creating duplicate terms. You can script this easily using Powershell. This has some limitations though.
    Also, you can try little customization. Follow this link -
    http://www.mavention.com/blog/building-global-naviga
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Splitting Site Collection and Changing the Managed Paths

    Hi there,
    I was hoping for some advice.  We are planning the upgrade our SP 2010 to SP 2013.  We have one Site Collection whose DB is nearing 180GB and growing so we are going to "split" it up into four.
    So, the logical thing would be to export sites/subsites and import them into their own site collection.  What I have found though is that when doing this, the workflow history is not kept - we need the workflow history so this is not an option.
    My other thought was to restore the DB, move the contents to a new Content DB, delete out of there what I don't want and do that four times.  That could work but then I get the problem of the URL.  I'm assuming by restoring this same DB four times
    it will be using the same URL?
    So, if anybody knows of a tool out there that can do an export/import that will keep the workflow history that would be perfect (it would have to be free...) - or, how can I restore the DB's to new URL/Managed Paths?  Or maybe you have a better
    solution?  Any help would be appreciated.

    Rebecca, thanks for the suggestion - I just think that could get a bit messy for my users.
    Alex, the Workflow Cleanup job is disabled as we need to keep a record of who approved the task items.  I cannot lose the history.
    What I have done, and have only just started testing, was to backup and restore in Powershell the "Root site" and delete the three subsites.  Then, do the same again but this time, restore to a new URL 
    http://blogs.msdn.com/b/erica/archive/2013/11/26/customer-question-renaming-site-collections-in-sharepoint-2013.aspx 
    So, I've the done the following:-
    Backup-SPSite http://domain/sites/HR –Path E:\Backup\HRBackup.bak -UseSqlSnapshot
    Restore-SPSite http://sp.contoso.net/sites/HR/Subsite1 –Path E:\Backup\HRBackup.bak -ContentDatabase SPS_HRSite1
    Restore-SPSite http://sp.contoso.net/sites/HR/Subsite2 –Path E:\Backup\HRBackup.bak -ContentDatabase SPS_HRSite2
    Restore-SPSite http://sp.contoso.net/sites/HR/Subsite3 –Path E:\Backup\HRBackup.bak -ContentDatabase SPS_HRSite3
    Obviously space could be an issue.  Not a perfect solution but workflow history is kept and I've been able to split my Site Collection. My next challenge is moving the subsite into the root of that new site collection.  I added a comment here if
    anybody has any answers -
    https://social.technet.microsoft.com/forums/sharepoint/en-US/1dbd3d7c-ccd3-42e2-ba48-ad5731f38a58/change-subsite-to-toplevel-site-without-changing-the-link?prof=required

Maybe you are looking for