The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

There was a conflict between the supplied data and the existing resource.

Highlighted
Occasional Contributor

There was a conflict between the supplied data and the existing resource.

Hello,

 

The new API is giving me some headache with creating or updating contact lists.

Using the .NET wrapper and the IO Docs, I keep getting the following response message:

 

[{
   
"error_key":"http.status.conflict",
   
"error_message":"There was a conflict between the supplied data and the existing resource."
}]

 

I even tried mulitple browsers (Chrome, IE 10)

 

This issue occurs while executing the JSON payload metnioned in the API documentation.about creating a contact list.

 

{
 
"name":"Hot Opportunities",
   
"status":"ACTIVE"
}

 

Can anyone shed some light on this issue?

7 REPLIES 7
Highlighted
Employee

Re: There was a conflict between the supplied data and the existing resource.

Hi,

 

That message is indicative of a 409 (duplicate) error.  Do you already have a list with the name "Hot Opportunities"?  Can you create a list with a different name?

 

Best Regards,

Shannon W.

API Support Specialist

Highlighted
Occasional Contributor

Re: There was a conflict between the supplied data and the existing resource.

Hello Shannon,

 

The list does not exist. To be sure, I tried again with different listnames. I am sure they were never created before, and the result was the same.

 

I also tested deleting and updating a list. The same error message is shown after performing these actions aswell.

 

Get functionality works fine though. I can also create/update contacts. Scheduling a campaign also works as expected. I only seem to be running into this issue with creating/updating/deleting contact lists.

Highlighted
Employee

Re: There was a conflict between the supplied data and the existing resource.

Hi,

 

I did just try to create a new list with the same JSON payload you posted, and it went through successfully for me in IO Docs using Chrome.  Would you mind emailing us your Constant Contact username and the API Key you're using, to webservices@constantcontact.com so that we can take a look at those for any issues?  If you wouldn't mind giving us your access token as well, we can troubleshoot to see if we can reproduce the issue (otherwise, we'll just try to identify any issues with your account or key).  Thanks in advance.

 

Best Regards,

Shannon W.

API Support Specialist

Highlighted
Occasional Contributor

Re: There was a conflict between the supplied data and the existing resource.

Hi,

 

Thank you for your response Shannon.

I got the feeling there was something conflicting on my constanct contact account. Some time ago, I had some issues creating a contact list using the API v1: setting the OptInDefault property to true creates some conflicts in the sign-up tools. After contacting webservices@.. they suggested me to switch to API v2.

 

Resolving those conflicts in the signup-tools -> Edit Join My Mailing List Form solved the issue, and I can now execute the JSON mentioned earlier successfully. 

Highlighted
Occasional Participant

Re: There was a conflict between the supplied data and the existing resource.

Hi,

I am using constant contact php-api and I have the exact same problem, but it does not occur while creating a new contact while the same error occurs when I am updating a contact (when confirmed opt-in is on he has confirmed the subscription). Also I dont get any error whether it is adding a new contact or updating an existing contact while the Confirmed opt-in is not used. Dont know what to do, the above solution didn't work for me.

Please help me.

 

Thanks,

MAK

 

Highlighted
Moderator

Re: There was a conflict between the supplied data and the existing resource.

Thanks for reporting this.  We confirmed that there are some issues with state transitions for contacts in the "Awaiting Confirmation" state (I.E. they were sent a confirmed optin email and didn't click the link).  We are investigating and hope to have a fix soon.  Will post more information in our release notes as we have more details.  You can find this information on our developer website: http://developer.constantcontact.com/docs/release-notes/may-2014-rel-notes.html

Dave Berard
Senior Product Manager, Constant Contact
Highlighted
Occasional Participant

Re: There was a conflict between the supplied data and the existing resource.

Thanks, will follow till it's fixed.

 

Regards,

MAK

Developer Portal

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

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More
Featured