Microsoft Knowledge Base Email Alertz

Error message when you try to create a new database in Access 2007: Template could not be instantiated

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 958846 - Last Review: October 27, 2008 - Revision: 1.0

Error message when you try to create a new database in Access 2007: "Template could not be instantiated"

SYMPTOMS

When you try to create a database by using a Microsoft Office Access 2007 template (.accdt) file in Access 2007, you receive an error message that resembles one or more of the following:

Error message 1
SQL Distributed Management Objects (SQL-DMO) must be on the machine running Microsoft Office Access.
Error message 2
Template 'template name' could not be instantiated. The table 'table name' could not be read from the template file. The object may be in an unrecognized format or contain invalid data.
For example, you cannot create a new database by using any of the Access 2007 templates on the Getting Started with Microsoft Office Access screen. You also cannot create a new database by using an .accdt template file that you downloaded from Microsoft Office Online.

Additionally, you cannot import a table that is in XML format into a database even if you exported the table in XML format from the same database. You do not receive an error message. However, the table is not created as expected.

CAUSE

This problem occurs if the following files are registered incorrectly:
  • Msado15.dll
  • Msadox.dll

RESOLUTION

To resolve this problem, register the Msado15.dll file and the Msadox.dll file. To register the Msado15.dll file and the Msadox.dll file, follow these steps:
  1. In Windows XP, click Start, and then click Run. In the Open box, type cmd, and then click OK.

    In Windows Vista, click Start
    Collapse this imageExpand this image
     Start button
    , and then type cmd in the Start Search box. Right-click cmd in the Programs list, and then click Run as administrator.
  2. On a computer that is running a 32-bit version of Windows, type the following command, and then press ENTER:
    cd "C:\Program Files\Common Files\System\ado"
    On a computer that is running a 64-bit version of Windows, type the following command, and then press ENTER:
    cd "C:\Program Files (X86)\Common Files\System\ado"
  3. Type the following command, and then press ENTER:
    regsvr32 msado15.dll
  4. Click OK.
  5. Type the following command, and then press ENTER:
    regsvr32 msadox.dll
  6. Type exit, and then press ENTER.

APPLIES TO
  • Microsoft Office Access 2007
Keywords: 
kbtshoot kbprb KB958846
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Birk Binnard - birkb NOSPAM-AT-NOSPAM birkbinnard.com Report As Irrelevant  
Written: 3/8/2009 4:22 PM
I have this problem and the indicated fix did not work. My system is Vista 32 with Office 2007 Professional. From what I've read this is a fairly common problem with no known fix (including the Office 2007 Repair method.)

Anonymous User Report As Irrelevant  
Written: 7/7/2009 12:03 PM
Same for me. Nothing works.

tired of it - nope Report As Irrelevant  
Written: 8/17/2009 1:25 PM
yes... this doesn't work... can't find a fix anywhere...

Anonymous User Report As Irrelevant  
Written: 2/11/2010 11:58 AM
Very frustrating! Has this fix worked for anyone? I have Vista 32 with Office 2007 Professional. This program is to expensive not to work!

Anonymous User Report As Irrelevant  
Written: 3/5/2010 7:22 AM
This WORKED for me. I am running Office 2007 on Windows XP Professional, Version 2002 SP3.