HubSpot · api · fg-0386

HubSpot batch create results come back in a different order than the inputs

If you see results[i] does not correspond to inputs[i], the cause and the fix for HubSpot are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
results[i] does not correspond to inputs[i]Local rows get the wrong hs_object_id after a batch createMore than 100 inputs fails validation
Cause
Batch endpoints accept at most 100 inputs and do not promise that results follow input order. Zipping results to inputs by index cross-links records.
Fix
Match each result back on a unique property you sent, such as email or your own unique id property, never by array index. Add an objectWriteTraceId per input so partial failures come back as a 207 with per-input errors, and chunk inputs into groups of 100.
Apply
const byEmail = new Map(res.results.map(r => [r.properties.email, r.id])); rows.forEach(r => { r.hubspotId = byEmail.get(r.email); });
Affected
HubSpot CRM object batch create and update endpoints, as of 2026-10
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun