250: OTYPE must be provided - Please enter a value

Apr 23, 2013 at 1:22 PM
Please help to spot the problem with the following code
List.Merges Member = new List.Merges();            

        List<List.Merges> listmerges = new List<List.Merges>();

        List.SubscribeOptions subopt = new List.SubscribeOptions();
        subopt.DoubleOptIn = false;
        subopt.EmailType = List.EmailType.Html;
        subopt.ReplaceInterests = false;
        subopt.SendWelcome = false;
        subopt.UpdateExisting = true;

        MailChimp.MCApi abc12 = new MCApi("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-us5", true);

        List.BatchSubscribe dab = abc12.ListBatchSubscribe("xxxxxxxxx", listmerges);
Throwing Error - 250: OTYPE must be provided - Please enter a value

Please help ;-(
Apr 23, 2013 at 1:41 PM

Apr 23, 2013 at 2:11 PM
As suggested changed code as follows
       List.Merges Member = new List.Merges();            
        Member.Add("OTYPE", "4");
Now getting following error Message = "OID must be provided - Please enter a value"

Was with the impression OID will be a unique GUID which will be provided by MailChimp

Please let me know your thoughts and views.
Apr 23, 2013 at 2:19 PM
Nope. It's must be your own merge var. Just call ListMergeVars() to check all required merges.

Apr 23, 2013 at 2:34 PM
OTYPE and OID where required by default, unchecked and it is not throwing error.