- 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