Not all contacts are being added to our lists

Regular Participant

Not all contacts are being added to our lists

Our website collects opt-in signups from various sources. As such, we've written a script that periodically compiles all the signups site-wide and adds the contacts to our Constant Contact lists. It works great, except that not all the contacts are being added to our lists. About two thirds of the time (guestimated), anywhere from one to four contacts that should be added to our lists are not actually being added. (Average batch size is ten or fewer contacts.) I should add that many, or all, of the contacts we are trying to add now have been previously added and deleted, as we have been testing our implementation. Testing does not indicate that this is a contributing factor, but for some reason it seems relevant to mention. Is there any reason this should be happening? It seems completely random and I have not been able to find a pattern of any kind. Thanks, Matthew



Thanks for posting in the forums.  How are you adding the contacts?  Are you adding them one at a time, or all at once as an activity?  Depending on how the contacts were removed (whether there status is REMOVED or OPTOUT), the preexisting contacts have to be added back in individually.  Some more information on that is here:




Andrew B.

API Support

Our account hasn't even been approved to send yet, so we have no opt-outs. We've just periodically logged in to our account and deleted all contacts.

For adding contacts, I didn't do the programming so I'm not sure if we're adding them individually or all at once. If you could expound on this a bit, it might be helpful to the gentleman who actually wrote that part of the system.

You can add contacts individually, using the method and parameters described here


The other option is to add new contacts as a "batch" job using one of our bulk activity endpoints, depending on how you want to construct the contact data you will be importing - using JSON formatted data, or using a CSV, TXT, XLS, XLSX formatted file

Rich Marcucella
Sr. Technical Writer, Content Developer
Web Services Team

I have found that the contacts not being added are returning the following error:


The contact can not be opted in using 'ACTION_BY_OWNER'.


There's a lot more to the error (looked like codes of some kind), but I wasn't sure if some of it was sensitive so I didn't post it all here. I can if that would be helpful.


What does this error mean? My account shouldn't have any opt-outs yet since it hasn't even been approved to send. However, I have imported (and subsequently deleted) several thousand email addresses prior to realizing we'd need an API integration.

It does sound like you are doing a single contact add as the error you receive is only through the single contact add.  Basically, that error means that a contact is trying to be modified or created in a state that requires ACTION_BY_VISITOR (indicating the Contact asked to be subscribed).  There are a few reasons that could occur, most commonly that the contact already exists, is opted out and you are attempting to opt them back in.


We would need to see the raw information about the Contact you're trying to create/update, the payloads and do some investigation to get you a more detailed answer than this.  If you could email our API support team ( with the details that would help. 


Also wanted to point out, we do not permanently delete Contacts.  If you use the "Delete" option in our web UI, the Contacts are marked as "deleted" but stay in the database forever.  Thus, the API integration is likely trying to update one of those deleted Contacts and there is a disconnect in the states.

Dave Berard
Senior Product Manager, Constant Contact
Developer Portal

View API documentation, code samples, get your API key.

Visit Page