Code Error 800A000D – Type Mismatch

Runtime Error 800A000D – Type mismatch

The runtime error 800A000D is straightforward to solve.  The secret is to read the Windows Script Error message carefully, then locate the line number with the Type Mismatch.

Introduction To Error Code 800A000D

This runtime error, 800A000D occurs when you execute a VBScript.  My suggestion is that there is a VBScript statement that does not understand a keyword you are using in your script.  Alternatively, you may not be running the script as an ordinary user and not as an Administrator.

The Symptoms You Get 800A000D Code 800A000D  - Type mismatch ' Join'

The script does not execute as you hoped, instead you get a Microsoft VBScript runtime error.  One possibility is that you are using a WSH object or method that has been misspelt.

Chuck kindly wrote in saying that another cause maybe that you are logged on as ordinary user, and not an Administrator.

The Cause of Code 800A000D

Your VBScript contains an illegal method, probably due to a typing mistake, an extra letter.  Look for a clue opposite the phrase Error: Type mismatch….  In particular, double check the spelling of your objects.

Note 1:  Source: Microsoft VBScript runtime error.  This is not a syntax error in the sense of a missing bracket, more a typo in the keyword mentioned in the Error: line of your WSH Message.

Note 2:  Error: Type mismatch: ‘Join’.  Chuck says this could mean that you are logged on as an ordinary user and not an administrator.

Note 3:  What I have found, is that there need not be any errors per se in the script in order to receive the type mismatch join error. But what the cause has been for two of my recent experiences, is that the user in question, is only a part of a single group that isn’t

1. A domain built-in group.
2. Query based distribution groups.

The join statement fails in this case because the CurrentUser.MemberOf only contains a single value so when it tries to append the next value, there is no array for it to search through. One fix would be to add error handling around this statement, so that if it fails, it runs the same line except without the join statement. The other option is of course to ensure your users are a part of more than one security or static distribution group. I haven’t experimented with whether local domain, global or universal have an effect on this either, but I would imagine not.
Nathan Bicknell

The Solution of Runtime Error 800A000D

Check the spelling of your variables and methods.  Look for clues particularly the Line: number and check the Char: references.  In the example it is Line: 14  Char: 1.  In this instance the:  ‘Error: Type mismatch: ‘CreateeObject” tells us where the mistake is to be found. 

In the case of runtime errors you can use this work around.  Add this line: On Error Resume Next.  A better technique would have to employ error correcting code.

Try logging on as an Administrator, especially if your error says: Error: Type mismatch: ‘Join’.  (My screen shot says Error: Type mismatch: ‘CreateeObject’ – clearly my error is a typo.  CreateObject.

Guy Recommends:  A Free Trial of the Network Performance Monitor (NPM)Review of Orion NPM v11.5 v11.5

SolarWinds’ Orion performance monitor will help you discover what’s happening on your network.  This utility will also guide you through troubleshooting; the dashboard will indicate whether the root cause is a broken link, faulty equipment or resource overload.

What I like best is the way NPM suggests solutions to network problems.  Its also has the ability to monitor the health of individual VMware virtual machines.  If you are interested in troubleshooting, and creating network maps, then I recommend that you try NPM now.

Download a free trial of Solarwinds’ Network Performance Monitor

Example 1 of Error 800A000D Script

Error: CreateeObject- Extra letter e.  Look on line 14.

Correction: CreateObject – Corrected, letter e removed

‘ MapNetworkDrive.vbs
‘ VBScript Error 800A000D to map a network drive.
‘ Author Guy Thomas
‘ Version 2.2 – April 24th 2010
‘ ——————————————————–‘
Dim objNetwork
Dim strDriveLetter, strRemotePath
strDriveLetter = "J:"
strRemotePath = "\\alan\home"

‘ Purpose of script to create a network object. (objNetwork)
‘ Then to apply the MapNetworkDrive method. Result J: drive
Set objNetwork = CreateeObject("WScript.Network")

objNetwork.MapNetworkDrive strDriveLetter, strRemotePath

‘ End of Example Error 800A000D VBScript.

Engineer's Toolset v10Guy Recommends: SolarWinds Engineer’s Toolset v10

This Engineer’s Toolset v10 provides a comprehensive console of 50 utilities for troubleshooting computer problems.  Guy says it helps me monitor what’s occurring on the network, and each tool teaches me more about how the underlying system operates.

There are so many good gadgets; it’s like having free rein of a sweetshop.  Thankfully the utilities are displayed logically: monitoring, network discovery, diagnostic, and Cisco tools.  Try the SolarWinds Engineer’s Toolset now!

Download your fully functional trial copy of the Engineer’s Toolset v10

Example 2 of Error 800A000D ScriptError 800A000D Script Type mismatch

In this example, the VBScript runtime error message displays not only the line number but also the error string.

On this occasion, the fault is a $ (dollar) where VBScript expects an & (ampersand).

Actually, there is another mistake in line 10 it should be:
Set objRootDSE = GetObject("LDAP://"& strServer & " RootDSE")

Note the position of the two sets of speech marks.

‘ BindADUser.vbs
‘ VBScript to bind to AD and create a user in Users Container.
‘ Author Guy Thomas
‘ Version 2.3 – March 7th 2010
‘ —————————————————-‘
Option Explicit
Dim objDomain, objUser, objRootDSE, strServer
strServer = "Alan"
Dim objContainer, strDNSDomain
Set objRootDSE = GetObject("LDAP://& strServer $ "/" $ RootDSE")
strDNSDomain = objRootDSE.Get("DefaultNamingContext")
strDNSDomain = "OU=Accounts," & strDNSDomain
Set objDomain = GetObject("LDAP://" & strDNSDomain)
Set objUser = objDomain.Create("User", "cn=Guido 4Fawkes")
objUser.Put "sAMAccountName", "GuidoFawkes4"
WScript.Echo "Created " & objUser.get ("cn")
‘ End of Script

Example 3 of Type Mismatch

strNewXP = strNewXP + intComputerNum

To join the two variables, I should have used was ampersand (&) not plus (+)


strNewXP = strNewXP & intComputerNum


See More Windows Update Error Codes 8004 Series

Error 800A101A8 Object Required   •Error 800A0046   •Error 800A10AD   •Error 800A000D

Error 80048820   •Error 800A0401   •Review of SolarWinds Permissions Monitor

Error 80040E14   • Error 800A03EA   • Error 800A0408   • Error 800A03EE

Solarwinds Free WMI MonitorGuy Recommends: WMI Monitor and It’s Free!

Windows Management Instrumentation (WMI) is one of the hidden treasures of Microsoft operating systems.  Fortunately, SolarWinds have created the WMI Monitor so that you can examine these gems of performance information for free.  Take the guess work out of which WMI counters to use for applications like Microsoft Active Directory, SQL or Exchange Server.

Download your free copy of WMI Monitor

Do you need additional help?

Give something back?

Would you like to help others?  If you have a good example of this error, then please email me, I will publish it with a credit to you:

If you like this page then please share it with your friends