1

Resolved

ListInterestGroupings fails when the group value bit is too big

description

The InterestGroup type uses int for the “Bit” field, but this breaks when Bit is too big, throwing System.OverflowException: Value was either too large or too small for an Int32.
 
E.g. here's an extract from the XML I get calling ListInterestGroupings for one of my lists:
 
<MCAPI type="array">
<struct key="0" type="array">
<display_order type="string">0</display_order>
<form_field type="string">dropdown</form_field>
<groups type="array">
    ....
    <struct key="24" type="array">
        <bit type="string">68719476736</bit>
        <display_order type="string">25</display_order>
        <name type="string">My Group</name>
        <subscribers type="integer">1</subscribers>
     </struct>
     ....
</groups>
</struct>
</MCAPI>
 
As you can see, 68719476736 is too big for an int, and the XML type is actually string. Also the API page lists Bit as a string (http://apidocs.mailchimp.com/rtfm/listinterestgroupings.func.php)

comments

denisk1981 wrote Apr 28, 2011 at 12:08 PM

I'll change this asap

wrote May 11, 2011 at 9:57 AM

wrote Feb 21, 2013 at 10:44 PM

wrote May 16, 2013 at 10:23 AM

wrote May 16, 2013 at 10:23 AM

wrote Jun 14, 2013 at 7:23 AM