I am trying to synchronize a person’s record with my database on mailchimp. I can update all fields except email. Email I can update only once. When you upgrade again, it throws an error. I use their java APIs. This is what I do -
emailType = ""; replaceInterests = false; mergeVars.put("EMAIL", rs.getString("email")); Boolean rc = mcServices.listUpdateMember(apiKey, listId, mailChimpId, mergeVars, emailType, replaceInterests);
Re-access error message -
com.nwire.mailchimp.MailChimpServiceException: oldEmail@email.com not a member of listName on com.nwire.mailchimp.MailChimpServiceFactory $ ClientFactory $ 1.invoke (MailChimpServiceFactory.java:190) in $ Proxy0.listUpdateMember. unknown mailchimp.test.TestMCList1.updateDetails (TestMCList1.java:121) at com.nwire.mailchimp.test.TestMCList1.sync (TestMCList1.java:92) at com.nwire.mailchimp.test.TestMCList1.run (TestMCListjava 52) on com.nwire.mailchimp.test.TestMCList1.main (TestMCList1.java:35)
Please note that the oldEmail@email.com in the error message is the original email address in Mailchimp shich, which I successfully updated once, but is still displayed with repeat links.
thanks
source share