Import of subsite is not working.

sns 9,226 Reputation points
2023-03-19T16:42:24.05+00:00

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.
2,213 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Yanli Jiang - MSFT 21,371 Reputation points Microsoft Vendor
    2023-03-20T07:46:05.0566667+00:00

    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.

    2.you 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
    2023-03-20T08:00:06.0333333+00:00

    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,
    Jimmy