4
Vote

Unhandled Exception: System.FormatException: Additional non-parsable characters

description

When executing the following query and there exist multiple users:
admodcmd -dn "OU=subsubcontainer,OU=subcontainer,OU=container,DC=conteso,DC=com" -custom extensionAttribute1 "Skool test1"
 
I get this exception:
 
Unhandled Exception: System.FormatException: Additional non-parsable characters
are at the end of the string.
at System.ParseNumbers.StringToInt(String s, Int32 radix, Int32 flags, Int32*
currPos)
at System.Convert.ToInt16(String value, Int32 fromBase)
at ADModify.ADModifyMain.GetDN(XmlWriter logWriter, String LDAPFilter, Boolea
n subtree, String SearchBase)
at ADModify.ADModifyMain.Main(String[] args)
 
 
I tried it on a container with 2 users is run succesfully, but with 11 users or more it gives this error.
 
Also it generates an erro in the eventlog:
 
Event Type: Error
Event Source: .NET Runtime 2.0 Error Reporting
Event Category: None
Event ID: 5000
Date: 20-2-2008
Time: 12:38:29
User: N/A
Computer: EXCH
Description:
EventType clr20r3, P1 admodcmd.exe, P2 2.1.2761.23469, P3 46a64cba, P4 mscorlib, P5 2.0.0.0, P6 471ebc5b, P7 91f, P8 22, P9 system.formatexception, P10 NIL.
 
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 63 00 6c 00 72 00 32 00 c.l.r.2.
0008: 30 00 72 00 33 00 2c 00 0.r.3.,.
0010: 20 00 61 00 64 00 6d 00 .a.d.m.
0018: 6f 00 64 00 63 00 6d 00 o.d.c.m.
0020: 64 00 2e 00 65 00 78 00 d...e.x.
0028: 65 00 2c 00 20 00 32 00 e.,. .2.
0030: 2e 00 31 00 2e 00 32 00 ..1...2.
0038: 37 00 36 00 31 00 2e 00 7.6.1...
0040: 32 00 33 00 34 00 36 00 2.3.4.6.
0048: 39 00 2c 00 20 00 34 00 9.,. .4.
0050: 36 00 61 00 36 00 34 00 6.a.6.4.
0058: 63 00 62 00 61 00 2c 00 c.b.a.,.
0060: 20 00 6d 00 73 00 63 00 .m.s.c.
0068: 6f 00 72 00 6c 00 69 00 o.r.l.i.
0070: 62 00 2c 00 20 00 32 00 b.,. .2.
0078: 2e 00 30 00 2e 00 30 00 ..0...0.
0080: 2e 00 30 00 2c 00 20 00 ..0.,. .
0088: 34 00 37 00 31 00 65 00 4.7.1.e.
0090: 62 00 63 00 35 00 62 00 b.c.5.b.
0098: 2c 00 20 00 39 00 31 00 ,. .9.1.
00a0: 66 00 2c 00 20 00 32 00 f.,. .2.
00a8: 32 00 2c 00 20 00 73 00 2.,. .s.
00b0: 79 00 73 00 74 00 65 00 y.s.t.e.
00b8: 6d 00 2e 00 66 00 6f 00 m...f.o.
00c0: 72 00 6d 00 61 00 74 00 r.m.a.t.
00c8: 65 00 78 00 63 00 65 00 e.x.c.e.
00d0: 70 00 74 00 69 00 6f 00 p.t.i.o.
00d8: 6e 00 20 00 4e 00 49 00 n. .N.I.
00e0: 4c 00 0d 00 0a 00 L.....

comments

tobbej1 wrote Apr 3, 2008 at 3:31 PM

i get the exact same error when i try to use admodcmd to dump the mailbox rights on all users below one OU

tobbej1 wrote Apr 3, 2008 at 3:37 PM

i forgot, this error only shows up with the command line tool.
if i use the gui to do the same thing it works just fine.

the gui is not an option for me since i'm trying to script something that requires the list of exchange permissions.

here is the output from one run of admodcmd:

admodcmd -dn OU=something,DC=my,DC=domain -s -dumpmailboxrights

Issuing Query....

854 items found matching the specified filter.


Unhandled Exception: System.FormatException: Additional non-parsable charactersare at the end of the string.
at System.ParseNumbers.StringToInt(String s, Int32 radix, Int32 flags, Int32* currPos)
at System.Convert.ToInt16(String value, Int32 fromBase)
at ADModify.ADModifyMain.GetDN(XmlWriter logWriter, String LDAPFilter, Boolean subtree, String SearchBase)

at ADModify.ADModifyMain.Main(String[] args)

wrote Dec 29, 2008 at 8:49 AM

MrTREX wrote Dec 29, 2008 at 8:54 AM

Exact same issue here.

When using

admodcmd -dn OU=MyOU,DC=my,DC=domain -passwordnotrequired no -Passwordneverexpires no

it works fine on my testOU with 2 testaccounts, but on the production ou (with over 4000 accounts) is generates the exact same unhandled exception mentioned in this thread.

No Problems when using the GUI.

If there is a solution then I would really like to know.

wrote Mar 31, 2009 at 11:44 AM

wrote Feb 21, 2013 at 11:42 PM