[SPS] A list, survey, discussion board, or document library with the specified title already exists

OK, so I got asked by many what do I usually do in such situations when after a migration or solution update, I get the error message

“Sorry, something went wrong
A list, survey, discussion board, or document library with the specified title already exists in this web site.  Please choose another title.”

First you would check the ULS logs and you will normally find something similar to:

The list “$Resources:core,webpageassetList;” in web “http://myteam13test” was not created. hr = 0x81020012.

Failed to create list “$Resources:core,webpageassetList;” in web “http://myteam13test”, HRESULT=0x27a2abc0. List XML: “<List xmlns:ows=”Microsoft SharePoint” Title=”$Resources:core,shareddocuments_Title_15;” Direction=”$Resources:core,Direction;” Url=”Shared Documents” BaseType=”1″/>”

Failed to instantiate list ‘C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\Template\Features\DocumentLibrary\doclib’

A list, survey, discussion board, or document library with the specified title already exists in this Web site. Please choose another title.

 

One of the reasons of this error message is that somehow the Site Assets library got corrupted.

Here’s how to fix it:

  • Browse to Site Content and see if the Site Assets library exists. If it does, delete it.
  • If you don’t see it there, open the site in SharePoint Designer and select All Files.
  • See if the Site Assets library is there. If it is, delete it. (I did find it there in my case).
  • Now go back to your site and go to Site Settings then Title, Description, and Logo.

    Now everything works! If you still have the site open in SharePoint Designer, hit F5 and you will see

    that it re-provisioned the Site Assets library.