|
|
Error 800A01C2 - Wrong number of arguments of invalid property assignment.Troubleshooting Error 800A01C2 - Wrong number of arguments of invalid property assignment.Error 800A01C2 is a tricky problem. Check to see if your script needs an extra 'Set' Command Introduction to Code 800A01C2
Error code, 800A01C2 occurs when you execute a VBScript. This is a
runtime error, therefore check the names of your objects.
The Symptoms You GetThe script does not execute as you had hoped. Instead you get a message box like this picture: (Screen shot kindly sent in by Jim Wells.) The Cause of Code 800A01C2The best clue to the error comes at the end of the line, the word 'objUser'. objUser is a valid object and term, therefore we need to investigate what is missing. I solved the problem by comparing with another script, which executed perfectly. It turned out that 'Set' was required in front of objUser. Incidentally, Source: reports a runtime error not a compilation error, this means you are looking not for a pure syntax problem, but a fault logic error. In the case of runtime errors, you can use this temporary work around. Add this statement just before the line which errors: On Error Resume Next. The Solutions Wrong number of arguments of invalid property assignment.Check the names in your script, pay particular attention to object names. Note: The Line: 6 Char: 1 In this case it is not Char 1 to blame, more that there is something wrong and none of the line can execute. In this case it should be Set objUser = As a last resort, in the case of runtime errors, you can add this line: ‡ Example of Error 800A01C2 ScriptNote: The Line: 6 objUser The script needs a 'Set' command before objUser 'CREATE USER AND SET PASSWORD Corrected Version'CREATE USER AND SET PASSWORD 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
|
||||
Custom Search
|
|
|
Author: Guy Thomas Copyright © 1999-2013 Computer Performance LTD All rights reserved. Please report a broken link, or an error to: | |