listMemberInfo Execute Not Always Returning Merge Fields

47 views
Skip to first unread message

Cagg

unread,
Dec 9, 2009, 11:37:38 PM12/9/09
to MailChimp API Discuss
Hi All,
I'm having an issue with listMemberInfo.Execute(). Some of the merge
counts are returning 0, it happens on about 5% of any list I pull
down. I am using PerceptiveMCAPI and like the functionality. I have
checked and all of the email addresses that are sent are valid and
listMemberInfoInput is being populated properly. In fact if I run the
same list without the wrapper the merges are populated. I would really
like to use the PerceptiveMCAPI wrapper and not have to write my own.
Does anyone have an idea as to why certain records come back blank?

Code below:

var _listMemberInfo = new listMembersInput(apiKey, listId,
EnumValues.listMembers_status.subscribed, 0, 15000);
var _listMembers = new listMembers(_listMemberInfo);
var _list = _listMembers.Execute();
foreach (var _out in _list.result)
{
var _listMemberInfoInput = new listMemberInfoInput(apiKey,
listId, _out.email);
var _memberInfo = new listMemberInfo(_listMemberInfoInput);
var _listMembersInfo = _memberInfo.Execute();
if (_listMembersInfo.result.merges.Count == 0)
{
var _hitme = "hit";
}
}

Thanks for any help,

Jim

DavidMcL, Perceptive Logic

unread,
Dec 10, 2009, 1:00:28 PM12/10/09
to MailChimp API Discuss
Jim,

Log an issue at

http://perceptivemcapi.codeplex.com/

and I'll take a look at it.

Thanks,

David

j...@cagg.com

unread,
Dec 10, 2009, 2:55:22 PM12/10/09
to mailchimp-...@googlegroups.com
Thanks David, will do when I get back to my office.

Jim
Sent from my Verizon Wireless BlackBerry

-----Original Message-----
From: "DavidMcL, Perceptive Logic" <percept...@gmail.com>
Date: Thu, 10 Dec 2009 10:00:28
To: MailChimp API Discuss<mailchimp-...@googlegroups.com>
Subject: Re: listMemberInfo Execute Not Always Returning Merge Fields

Jim,

Log an issue at

http://perceptivemcapi.codeplex.com/

and I'll take a look at it.

Thanks,

David


On Dec 9, 10:37 pm, Cagg <j...@cagg.com> wrote:
> Hi All,
>   I'm having an issue with listMemberInfo.Execute(). Some of the merge
> counts are returning 0, it happens on about 5% of any list I pull
> down. I am using PerceptiveMCAPI and like the functionality. I have
> checked and all of the email addresses that are sent are valid and
> listMemberInfoInput is being populated properly. In fact if I run the
> same list without the wrapper the merges are populated. I would really
> like to use the PerceptiveMCAPI wrapper and not have to write my own.
> Does anyone have an idea as to why certain records come back blank?
>
> Code below:
>
>  var_listMemberInfo = new listMembersInput(apiKey, listId,
> EnumValues.listMembers_status.subscribed, 0, 15000);
>       var_listMembers = new listMembers(_listMemberInfo);
>       var_list =_listMembers.Execute();
>       foreach (var_out in_list.result)
>       {
>         var_listMemberInfoInput = new listMemberInfoInput(apiKey,
> listId,_out.email);
>         var_memberInfo = new listMemberInfo(_listMemberInfoInput);
>         var_listMembersInfo =_memberInfo.Execute();
>         if (_listMembersInfo.result.merges.Count == 0)
>         {
>           var_hitme = "hit";
>         }
>       }
>
> Thanks for any help,
>
> Jim

--

You received this message because you are subscribed to the Google Groups "MailChimp API Discuss" group.
To post to this group, send email to mailchimp-...@googlegroups.com.
To unsubscribe from this group, send email to mailchimp-api-di...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mailchimp-api-discuss?hl=en.


davidmcl

unread,
Dec 16, 2009, 12:38:44 PM12/16/09
to MailChimp API Discuss
Jim -- per our off-line conversation, I'm just tagging this for the
group.

The problems Jim saw was actually not a problem with the mergevars in
the listMemberInfo method, it was just that the mergevars was what he
was looking for , and they were empty because the call to the api
filed under a single specific scenario which was the result of bad
data from MailChimp in the 'lists' result field.

I'll be creating another post with the specifics for Jesse, or you can
go to

http://perceptivemcapi.codeplex.com/WorkItem/View.aspx?WorkItemId=2268

to see the comments there.


Until resolved, if you're using the PerceptiveMCAPI .NET wrapper, use
the serial/JSON option for the listMemberInfo api call.


Thanks,

David

On Dec 10, 1:55 pm, j...@cagg.com wrote:
> Thanks David, will do when  I get back to my office.
>
> Jim
> Sent from my Verizon Wireless BlackBerry
>
>
>
> -----Original Message-----
> From: "DavidMcL, Perceptive Logic" <perceptivelo...@gmail.com>
> Date: Thu, 10 Dec 2009 10:00:28
> To: MailChimp API Discuss<mailchimp-...@googlegroups.com>
> Subject: Re:listMemberInfoExecute Not Always Returning Merge Fields
>
> Jim,
>
> Log an issue at
>
> http://perceptivemcapi.codeplex.com/
>
> and I'll take a look at it.
>
> Thanks,
>
> David
>
> On Dec 9, 10:37 pm, Cagg <j...@cagg.com> wrote:
> > Hi All,
> >   I'm having an issue withlistMemberInfo.Execute(). Some of the merge
> For more options, visit this group athttp://groups.google.com/group/mailchimp-api-discuss?hl=en.- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages