---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/api/errors/90019#article
headline: "90019: 'TemplateArgs' dictionary size is too large"
url: https://www.twilio.com/docs/api/errors/90019
inLanguage: en
dateModified: 2026-06-08T11:38:30.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# 90019: 'TemplateArgs' dictionary size is too large

Log Type: APPLICATION

Log Level: ERROR

## Description

This error occurs when your request includes more template arguments in `TemplateArgs` than Twilio accepts for a template message. Send only the key-value pairs required to populate the placeholders defined in your template.

### Possible causes

* `TemplateArgs` contains too many entries.
* Your request includes placeholder keys that are not required by the template you are sending.
* Your application is passing a large personalization object into `TemplateArgs` instead of only the variables used by the template.
* The template design requires more dynamic fields than Twilio supports in a single template payload.

### Possible solutions

* Remove unused entries from `TemplateArgs` and resend the request.
* Send only the placeholder keys that are defined in the template body.
* Keep the template variable payload within the supported limit. Content templates support up to 100 variables.
* Move static text into the template itself and reserve `TemplateArgs` for runtime substitution values only.
* If you need more placeholders than a single template supports, simplify the template or split the content into multiple messages or templates.
* Review each variable definition before resending. Variable keys cannot contain spaces, keys can be up to 16 characters, and values can be up to 1,600 characters.

#### Additional resources

* [Using Variables with Content Templates](/docs/content/using-variables-with-content-api)
* [Send templates created with the Content Template Builder](/docs/content/send-templates-created-with-the-content-template-builder)
* [Messages resource](/docs/messaging/api/message-resource)
