SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any utility out there that can tell me if there is any custom web template missing or faulty from a site collection,

I keep getting error "WEB template #00000 not found" while importing a Exported site collection.

share|improve this question

You could use powershell to access the SharePoint object model.

The site's template ID is a property of SPWeb. (SPweb.WebTemplateID)

Then you would compare this integer to the list of site template ID numbers :

plus on msdn has this article, if you know the template then you can fix or restore it using stsadm.

hope this helps

share|improve this answer
my question is, How would I know if a web template is missing or faulty :S – Muhammad Raja Aug 13 '12 at 12:38
the thing is you dont know until you migrate it to another site or unpgrate it form 2007 to 2010 where youll get the errors popping up and thats where you would use the methods above ;) – ali Sharepoint Aug 14 '12 at 9:00
up vote 1 down vote accepted

I couldn't find any way you could find out that a web template is faulty or missing for a site collection.

However the error I was getting was because site collection was customized and someone deleted web template which was referenced in the site definition of site collection.

I solved problem by creating a new site collection using site definition again and also by adding web templates to 12 hive.

Hope it helps anyone get same kind of error.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.