Internal error on contacts merge

Hi, I’m trying to merge multiple contacts into one, after first successful merge the second one raises error, `internal error`

await Promise.mapSeries(contactIds, async (contactIdToMerge) => {
 const publicMergeInput = { primaryObjectId: primaryContactId, objectIdToMerge: contactIdToMerge };
 contact = await hubspotClient.crm.contacts.publicObjectApi.merge(publicMergeInput);
});

Hey, @SHayrapetyan :waving_hand: Could you add the full error body? Furthermore, are you getting any additional details in the page inspector > console log or network tab? Sometime with our ambiguous error messaging, there can be clues or context there. Not always, but sometimes :wink:

Hey, @Sjardo @miljkovicmisa, do you have any additional thoughts here?

Thank you! — Jaycee

Hi,

Sadly, I have no knowledge about this :sweat_smile: Tho, it sounds like something is wrong with the loop you are going trough.

Best