We have a connector that matches to or creates a HubSpot contact whenever they register, cancel, or attend an event hosted on our platform.
When using both the CRM Contacts and Marketing Events APIs, if we send a batch of contacts and one of the contacts has an invalid email, all of the subsequent contacts in that batch fail to sync, even if they are valid.
Has anyone else run into this, and if so, any slick workarounds to prevent this? Our platform has different email validation rules than HubSpot, and we have customers who have experienced this where the email domain is in fact valid, and it not only fails to sync the contact, but also fails the creation/matching of valid emails/contacts.
Thanks in advance for any suggestions/guidance!
Hi @RdotCosta and welcome to the Community!
We are delighted to have you here!
Thanks for asking the Community!
I’ve noticed a similar idea already present in our Ideas Forum: Improve API batch errors.
To contribute, you can upvote the existing idea and share more details about your specific use case in the comments.
Also, I’d like to ask our Top Experts: Hi @HubSpot_Corey, @Bortami and @Teun do you have suggestions to help @RdotCosta, please? Are you experiencing the same, please?
Thanks a lot and have a great day!
Best,
Bérangère
Hi @RdotCosta and thanks for the tag @BérangèreL
To help out further, can you please provide an example of the error response you receive when it fails and confirm if you’re using the latest API endpoints? Typically if the issue is with the API, then your best best is to either do hygeine checks before submitting and only submitting smaller batches to prevent larger fails.
However, while multiple users do experience this issue, it’s not actually by design. It’s only meant to return partial errors as outlined here Error handling - HubSpot docs. So providing further context can help us find the best solution.