Python SDK compile payload fails on max record limit

resp = client.outbound.post_campaigns_compiles(campaign_id, payload)
# Returns 422 Unprocessable Entity

The compile payload keeps rejecting CSV source references. Deduplication matrices look fine. Dialer database constraints are tripping the max record count. Phone normalization triggers aren’t firing before the atomic POST. Logs show the batch caps at 50k. Weird.

Need a breakdown for the validation logic.

  1. How to format the timezone verification pipelines?
  2. Where do I hook the DNC list checking before the webhook fires?
  3. What’s the exact schema tweak to stop the import failure
chunks = [payload[i:i+49000] for i in range(0, len(payload), 49000)]
for chunk in chunks:
 client.outbound.post_campaigns_compiles(campaign_id, chunk)

Saw a workaround in the community for this limit. The endpoint doesn’t accept more than 50k, so splitting the list into chunks fixes the compile error. It’s better to loop through the chunks and post them separately.