Mailchimp - How to fix codes rejected with "Your merge fields were invalid."
If you see rejected requests when delivering codes to new Mailchimp subscribers, you can view the reason by clicking on the number of rejected requests. This will show you a list of all the rejected requests and the reason why they were rejected:
When the technical error stated is "Your merge fields were invalid." then that means that Coupon Carrier wasn't allowed to update the subscriber in order to add the code. Mailchimp rejected the request because one or more merge fields on the subscriber are currently invalid.
The two most common reasons for this are that you have a merge field on your email list that is marked as required or an address field that isn't valid. For example, you could see the following errors:
- { "field": "MMERGE5", "message": "Please enter a value" }
- { "field": "ADDRESS", "message": "Please enter a complete address" }
How to fix the "Please enter a value" error
This means that the merge field "MMERGE5" is configured to require a value (can't be empty), but for some reason, the subscriber that should receive a code didn't have a value in that field. To fix this, either make sure that all fields are valid for each new subscriber or remove the requirement for the corresponding list field:
How to fix the "Please enter a complete address" error
This means that the merge field "ADDRESS" is missing or incomplete. When there is an incomplete or invalid address on a subscriber, Mailchimp will not let you or any third-part app update any merge field until the invalid field has been fixed. Unfortunately, Mailchimp does allow some connected e-commerce platforms to sync subscribers even though they have invalid addresses.
This causes the issue that new subscribers are added to your email list, but they can't be updated in any way. To solve this, you either have to manually fix the subscriber's address field, or set them to an empty address.
Contact us if you need help with understanding why you're seeing these errors and how to fix them.