Import of subsite is not working.

sns 8,866 Reputation points

Import of subsite is not working.

I got the CMP File after using method using "Unattach recover contendatabase method" after DB got restored from particular date.

But when I try to restore using that CMP file to the sub site it is giving following error. Please suggest.

User's image

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
1,983 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Yanli Jiang - MSFT 16,741 Reputation points Microsoft Vendor

    Hi sns,

    make sure if its a subsite, export/import works on a subsite.

    couple of scenarios to double check.

    1. check if you are able to get to get-spweb object of the url .

    ---if it spits expection then you probably dont have access. need to be a  shell admin to execute the operation

    Issue the following commands from powershell using your sharepoint db owner (or installer account):

    $db = Get-SPContentDatabase -site http://sharepoint
    Add-SPShellAdmin -UserName "Domain\SP_User" -database $db

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

  2. Joseph Markson 0 Reputation points

    In the left pane of the new SharePoint admin center, select Settings. At the bottom of the page, select classic settings page.

    Under Site Creation, select to show or hide the Create site command.

    Select OK when you're done.

    Hope you find this helpful,