topic Re: Empty List array for some contacts in Developer Support – ask questions, find answershttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/268073#M9740
<P>Hi,</P><P>&nbsp;</P><P>I'm also getting the same issue, in my case all contacts return an empty array lists.</P><P>&nbsp;</P><P>I'm using cc php sdk v1. Is there any solution for this issue?</P><P>&nbsp;</P><P>&nbsp;</P><P>Thanks.</P>Thu, 24 Sep 2015 09:37:51 GMTSigurjonK2015-09-24T09:37:51ZEmpty List array for some contactshttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/175706#M8207
<P>Some contacts have a status of REMOVED or OPT-OUT when querying them with the API. &nbsp;With these statuses the list array is empty.</P><P>&nbsp;</P><P>I figured that this is the normal functionality. &nbsp;But for soem reason, when you look up the contact using the CC.com UI, the contact may belong to many lists and I can send them emails.</P><P>&nbsp;</P><P>How come you can add this contact to list and send them emails, but once added to the list the API cannot get the list results?</P><P>&nbsp;</P><P>The following contact is on 4 lists in the cc.com UI and I can send him emails. &nbsp;Why cant teh API query the lists he is on.</P><P>&nbsp;</P><P>&nbsp;</P><P>Function call:</P><P>$contact_info = $cc-&gt;getContactByEmail(ACCESS_TOKEN, $email);</P><P>&nbsp;</P><P>This works correctly if teh contact ahs an ACTIVE status.</P><P>&nbsp;</P><PRE>[0] =&gt; Ctct\Components\Contacts\Contact Object
(
[id] =&gt; 24
[status] =&gt; REMOVED
[first_name] =&gt; XXXXX
[middle_name] =&gt;
[last_name] =&gt;
[confirmed] =&gt;
[source] =&gt;
[email_addresses] =&gt; Array
(
[0] =&gt; Ctct\Components\Contacts\EmailAddress Object
(
[id] =&gt; 100f5210-7dbc-11e3-b30a-d4ae5292b9a6
[status] =&gt; REMOVED
[confirm_status] =&gt; NO_CONFIRMATION_REQUIRED
[opt_in_source] =&gt; ACTION_BY_OWNER
[opt_in_date] =&gt; 2013-07-23T14:13:51.000Z
[opt_out_date] =&gt; 2014-02-07T05:00:00.000Z
[email_address] =&gt; XXXXX
)
)
[prefix_name] =&gt;
[job_title] =&gt;
[addresses] =&gt; Array
(
[0] =&gt; Ctct\Components\Contacts\Address Object
(
[id] =&gt; 1268ab60-7dbc-11e3-b30a-d4ae5292b9a6
[line1] =&gt;
[line2] =&gt;
[line3] =&gt;
[city] =&gt; 40
[address_type] =&gt; BUSINESS
[state_code] =&gt;
[country_code] =&gt;
[postal_code] =&gt;
[sub_postal_code] =&gt;
)
)
[notes] =&gt; Array
(
)
[company_name] =&gt; XXXXX
[home_phone] =&gt;
[work_phone] =&gt;
[cell_phone] =&gt;
[fax] =&gt;
[custom_fields] =&gt; Array
(
[0] =&gt; Ctct\Components\Contacts\CustomField Object
(
[name] =&gt; CustomField1
[value] =&gt; 110148
)
)
[lists] =&gt; Array
(
)
[source_details] =&gt;
)</PRE><P>&nbsp;</P>Thu, 27 Mar 2014 00:54:40 GMThttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/175706#M8207AnthonyL1962014-03-27T00:54:40ZRe: Empty List array for some contactshttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/176792#M8218
<P>Can you PM me the email address of the contact(s) in question?&nbsp; We'll need to research this some.</P>Mon, 31 Mar 2014 13:15:38 GMThttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/176792#M8218DaveBerard2014-03-31T13:15:38ZRe: Empty List array for some contactshttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/176798#M8221
<P>Thanks for sending the details over.&nbsp; We're going to look into this more on our side.&nbsp; From what you're describing and I'm seeing, this looks like a possible bug in what we're returning&nbsp; to you.&nbsp; Will update when we have more information.</P>Mon, 31 Mar 2014 13:32:01 GMThttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/176798#M8221DaveBerard2014-03-31T13:32:01ZRe: Empty List array for some contactshttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/177054#M8231
<P>Thank you ver much&nbsp; for looking into this.&nbsp; I will await your response.</P>Mon, 31 Mar 2014 18:27:10 GMThttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/177054#M8231AnthonyL1962014-03-31T18:27:10ZRe: Empty List array for some contactshttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/180286#M8262
<P>Can you please give me an update on the progress of this bug fix.</P>Wed, 09 Apr 2014 15:33:22 GMThttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/180286#M8262AnthonyL1962014-04-09T15:33:22ZRe: Empty List array for some contactshttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/180354#M8264
<P>I'm experiencing the same thing and contacted webservices support last week, but do not have a resolution yet. I've tried everything I can think of thru the API and web UI to fix the contact. I wish they could/would just purge the affected contact/records from the database so I could start fresh with this particular contact.</P><P>&nbsp;</P><P>Did support indicate to you (other than what's in this thread) that they are treating it as a bug with an intent to fix?</P>Wed, 09 Apr 2014 17:33:44 GMThttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/180354#M8264MatthewC36102014-04-09T17:33:44ZRe: Empty List array for some contactshttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/180360#M8265
<P>Hi Anthony,</P>
<P>&nbsp;</P>
<P>Sorry for the frustration &amp; delay on this issue. We are investigating this, and we believe that the cause has to do with our system now allowing an email address to exist in the account twice. I will keep you posted.</P>
<P>&nbsp;</P>
<P class="p1">Best Regards,</P>
<P class="p1">Shannon Wallace</P>
<P class="p1">Partner API Support Engineer</P>Wed, 09 Apr 2014 17:42:38 GMThttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/180360#M8265Shannon_W2014-04-09T17:42:38ZRe: Empty List array for some contactshttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/189788#M8512
<P>It has been some time now.&nbsp; Have you guys come up with a fix for this?</P>Tue, 27 May 2014 17:23:52 GMThttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/189788#M8512AnthonyL1962014-05-27T17:23:52ZRe: Empty List array for some contactshttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/192846#M8550
<P>Hi Anthony,</P>
<P>&nbsp;</P>
<P>I have done some digging around to get the latest information on this and while we are actively working to resolve the problem, we unfortunately do not yet have a specific time estimate for when this will be done.</P>
<P>&nbsp;</P>
<P>In this specific case, what is happening is a side-effect of the available potential to have two contacts with the same email address in our new contact management platform. This becomes an issue in some cases with API applications because the internal service that we use to communicate between our APIs and our contact management platform does not yet support the ability to return multiple contacts when you perform an exact search by email. In a case where you have two contacts with the same email address, but only one of the two contacts has a list subscription, the search may prioritize the contact which does not have any list subscriptions, thus causing the case you are seeing.</P>
<P>&nbsp;</P>
<P>To demonstrate this a bit more clearly, here is a quick example. For the sake of this example, I have Joe Smith and his wife Beth Smith who share an email address. Here is what their contact information would look like:</P>
<P>&nbsp;</P>
<PRE>Joe:
Email Address: jsmith@website.com
First Name: Joe
Last Name: Smith
List Subscriptions: General Interest, Weekly Mailings
Contact ID: 55<BR />Created: March 1st, 2014
Status: Active<BR />
Beth:
Email Address: jsmith@website.com
First Name: Beth
Last Name: Smith
List Subscriptions: None
Contact ID: 34<BR />Created: January 10th, 2014<BR />Status: Deleted</PRE>
<P>&nbsp;</P>
<P>Given this information, if I do a search in the API for the email address jsmith@website.com, the service that interfaces between the management platform and the API will return the contact who was created first, thus giving me Beth's information. However, Beth is not assigned to any lists and is a deleted contact. Because Beth is deleted, she will not appear in the UI, but the API can still see her. This causes the API to only show a contact with no lists, and the UI to only show a contact with lists.</P>
<P>&nbsp;</P>
<P>As I mentioned at the start of this post, we are working to address this issue by rolling out an update to the service with allows our API to interface with the contact management platform. This update will allow the API to return all contacts that are associated with an email address and thus allowing you to see both Joe and Beth. Because we want to be careful not to introduce new issues while we are working on an update to address issues like this, we are making sure that we take our time to do things right the first time and have a clean update when we are able to release it.</P>
<P>&nbsp;</P>
<P>If you do have any questions, please feel free to reply here and we will be happy to help.</P>
<P>&nbsp;</P>
<P>Sincerely,</P>Thu, 05 Jun 2014 15:08:11 GMThttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/192846#M8550Elijah_G2014-06-05T15:08:11ZRe: Empty List array for some contactshttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/231571#M9183
<P>I'm sorry to revive such an old thread, but I'm using APIv2 and still experiencing this.&nbsp; I have contacts in a REMOVED state with identical emails to those that are active.&nbsp; I'm using the PHP wrappers and running getContactByEmail and I only get a result set of 1 contact and it is the REMOVED contact.&nbsp; I never get the active.&nbsp; Has this bug been fixed by an update so I can filter out the REMOVED contacts that have identical email addresses to active contacts from my call results?</P><P>&nbsp;</P><P>Thanks.</P>Wed, 11 Feb 2015 20:25:48 GMThttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/231571#M9183JoanneP02015-02-11T20:25:48ZRe: Empty List array for some contactshttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/231660#M9185
<P>We've made the business decision&nbsp;to stop using the API completely. The API does not seem to be compatible with the functionality provided by the&nbsp;web interface or the business rules governing how Constant Contact manages their data. Using the API for updates can result in data corruption; Constant Contact's&nbsp;reluctance to enhance the API or&nbsp;manipulate data directly to resolve the issues created by the API do not provide an acceptable environment&nbsp;for leaving our API interface in use. I urge caution if you are considering using the API for updates.</P>Thu, 12 Feb 2015 19:00:31 GMThttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/231660#M9185MatthewC36102015-02-12T19:00:31ZRe: Empty List array for some contactshttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/231901#M9188
<P>My apologies for the frustrations you've faced using the API.&nbsp; Our API development team is working hard to minimize these types of issues.&nbsp; We understand how frustrating it can be when the functionality of our UI and API doesn't align.&nbsp;</P>
<P>&nbsp;</P>
<P>We are working with our Contact Management development team to enhance and build out fully featured Contact APIs.&nbsp; This project is taking longer than we anticipated and would have liked.&nbsp; We do appreciate your feedback and the patience you've had so far.&nbsp;</P>
<P>&nbsp;</P>
<P>I understand that patience is finite and&nbsp;does wear thin.&nbsp; I can also understand your decision to not use the API due to the problems you have run into.&nbsp;&nbsp; We have managed to mitigate the majority of problems our developers have run into.&nbsp; There are some limitations we are faced with that we have not been able to get passed so far, such as multiple contacts with the same email address not working effectively with search by email.&nbsp; We will continue to work on enhancing the API with the goal of solvingl of these problems and aligning the API and UI functionality.&nbsp; Hopefully you will continue to monitor our API updates going forward and that we can eventually meet your expectations.</P>Mon, 16 Feb 2015 18:06:30 GMThttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/231901#M9188DaveBerard2015-02-16T18:06:30ZRe: Empty List array for some contactshttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/268073#M9740
<P>Hi,</P><P>&nbsp;</P><P>I'm also getting the same issue, in my case all contacts return an empty array lists.</P><P>&nbsp;</P><P>I'm using cc php sdk v1. Is there any solution for this issue?</P><P>&nbsp;</P><P>&nbsp;</P><P>Thanks.</P>Thu, 24 Sep 2015 09:37:51 GMThttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/268073#M9740SigurjonK2015-09-24T09:37:51ZRe: Empty List array for some contactshttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/268090#M9743
<P>Hello,</P>
<P>&nbsp;</P>
<P>It may be possible to work around the issue, but it will require some investigation work. Is it possible for you to PM me your Constant Contact username and one or more email addresses that return an empty set of lists?</P>
<P>&nbsp;</P>
<P>I do also want to mention that if you are working on new development it is preferable to work with the V2 API rather than V1. The V1 API is in a deprecated state now and is only receiving fixes to critical issues moving forward.</P>
<P>&nbsp;</P>
<P>Please let me know if you have any questions!</P>
<P>&nbsp;</P>
<P>Sincerely,</P>Thu, 24 Sep 2015 15:14:01 GMThttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/268090#M9743Elijah_G2015-09-24T15:14:01ZRe: Empty List array for some contactshttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/269014#M9775
<P>Hi,</P><P>&nbsp;</P><P>I can't use the V2 sdk because the server I'm working on didn't meet the requirements so I just stick on V1. Okay I will PM you.</P><P>&nbsp;</P><P>&nbsp;</P><P>Thanks.</P>Tue, 13 Oct 2015 01:30:27 GMThttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/269014#M9775SigurjonK2015-10-13T01:30:27ZRe: Empty List array for some contactshttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/269015#M9776
<P>Hi,</P><P>&nbsp;</P><P>How can I send you a personal message? I can't see it anywhere...</P><P>&nbsp;</P><P>This is what I get on all contacts when I tried to get their lists:</P><P>&nbsp;</P><P><SPAN>[lists] =&gt; Array<BR />(<BR /></SPAN></P><P><SPAN>)</SPAN></P><P>&nbsp;</P><P>&nbsp;</P>Tue, 13 Oct 2015 01:36:47 GMThttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/269015#M9776SigurjonK2015-10-13T01:36:47ZRe: Empty List array for some contactshttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/269035#M9777
<P>Hello,</P>
<P>&nbsp;</P>
<P>You can send messages by clocking on the small letter icon at the top-right corner of the community and then choosing Compose Message and sending to me me (Elijah_G).</P>
<P>&nbsp;</P>
<P>As a note, if all contacts are showing empty lists, it is likely that you are requesting contacts from the collection, which does not include list membership data. With our V1 API, list memberships are only returned from the API when you are requesting a single contact, likely with the getContactDetails method in the wrapper for our V1 API. Unless you are specifically calling the getContactDetails method, then it is expected that the list memberships would not be shown in our V1 API.</P>
<P>&nbsp;</P>
<P>Please let me know if you have any additional questions!</P>
<P>&nbsp;</P>
<P>Sincerely,</P>Tue, 13 Oct 2015 16:35:37 GMThttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/269035#M9777Elijah_G2015-10-13T16:35:37ZRe: Empty List array for some contactshttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/269767#M9797
<P>Hi,</P><P>&nbsp;</P><P>Okay. I tried the getContactDetails method and passed to its url param the link value that I get from searchContactsByEmail method but I get an error. What should be the format of the value? Here is the error:</P><P>&nbsp;</P><P><STRONG>Catchable fatal error</STRONG>: Argument 1 passed to ConstantContact::getContactDetails() must be an instance of Contact, string given...</P><P>&nbsp;</P><P>------------------------------------------------------</P><P>&nbsp;</P><P>Nevermind I'm able to get it. I passed the object itself.</P><P>&nbsp;</P><P>&nbsp;</P><P>Thanks.</P>Wed, 28 Oct 2015 08:43:58 GMThttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/269767#M9797SigurjonK2015-10-28T08:43:58ZRe: Empty List array for some contactshttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/269795#M9798
<P>Glad to hear that you were able to resolve the problem! If you run into any roadblocks or have any questions, please let us know!</P>
<P>&nbsp;</P>
<P>Sincerely,</P>Wed, 28 Oct 2015 16:17:36 GMThttps://community.constantcontact.com/t5/Developer-Support-ask-questions/Empty-List-array-for-some-contacts/m-p/269795#M9798Elijah_G2015-10-28T16:17:36Z