cannot create site template

gogi100 51 Reputation points
2023-01-19T09:37:46.1833333+00:00

i have the sharepoint 2010 site where i want that to make a site template from existing the site, but every time i receive error. in sharepoint logs i receive error

Unable to open Lookup list '{b37ef198-8e59-423a-ada6-a39920773a73}'.[Error was 0x81020026] Unable to open Lookup list '{06c9e60d-1eb2-4ec0-b943-499dc3507703}'.[Error was 0x81020026] Unable to open Lookup list '{5d8323b6-fcac-42ec-a341-89edf986ee3e}'.[Error was 0x81020026] Failed to cache field with id "{99f67f83-060a-44e0-8abf-016bd249a553}", overwrite=0

those lists does not exists on my site. what i do, how i resolve this problem.

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,298 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,597 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,900 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Wendy Li_MSFT 1,711 Reputation points Microsoft Vendor
    2023-01-20T07:58:01.8766667+00:00

    @gogi100 This issue may be caused by some legacy lists or fields.

    To resolve this issue, as you cannot find them via UI, you can try to remove them via PowerShell.

    To remove a legacy list, you can use the following cmdlets:

    Add-PSSnapin Microsoft.SharePoint.Powershell -ErrorAction SilentlyContinue
    
    Get-SPWeb "http://YourWebURL" | Where-Object { $_.Lists.Delete([System.Guid]"{8a0aa5b1-3dd2-4b89-8d94-a4a6a7b336c1}") }
    

    Note: you need to change the GUID to your owns in the error message.

    To remove a legacy field, you can use the following cmdlets:

    Add-PSSnapin Microsoft.SharePoint.Powershell -ErrorAction SilentlyContinue
    
    $Web = Get-SPWeb "http://YourWebURL/"
    
    foreach ($field in $web.Fields)
    {
        if($field.Id -eq "43de0d0f-d9fc-46dd-ab43-19f8b9d219c1")
        {
          $field.Delete()
          write-output “Title: $($field.Title) | ID: $($field.Id) has deleted”
        }
    }
     
    $web.Dispose()
    
    

    Note: you need to change the GUID of the above cmdlets to your field GUID in the error message.

    Result is like:

    User's image

    After removing these problematic lists and fields, re-save the site template again and create a new site using the new site template. Please have a try and let's know the result. :)


    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. gogi100 51 Reputation points
    2023-01-23T10:23:20.23+00:00

    i receive next message

    Exception calling "Delete" with "1" argument(s): "????? ?? ???????
    ???????? ???? ??? ???????? ?????? ????? ???? ?? ???????. ?????? ?? ?? ?? ?? ???
    ????? ???? ????? ????????."
    At line:1 char:80
    + Get-SPWeb "http://sharepoint-site/" | Where-Object {$_.Lists.Dele
    te <<<< ([System.Guid]"{5d8323b6-fcac-42ec-a341-89edf986ee3e}")}
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : DotNetMethodException