Error 132012: template variables in the wrong format
Error 132012 happens when variables follow the wrong format: positional on a named template, or the reverse. See the examples and the fix.
Two templates can look the same in WhatsApp and demand different requests. One uses positional variables, {{1}} and {{2}}, and the other uses named variables, such as {{customer_name}}. Whoever sends the wrong format gets 132012. The error is not about quantity but about how each value is identified inside the component.
What 132012 means
Short answer: 132012 means the variable values were sent in an incorrect format for that template. Meta's error codes table says to format the values as the template specifies.
The error is the sibling of 132000, with a different question. 132000 asks how many values; 132012 asks how each value is identified. The most common distinction is between positional variables, where array order says which value goes where, and named variables, where each value carries the variable name.
Positional or named: how the template was created
Short answer: the format is decided when the template is created and does not change at send time. If the template was created with named variables, the send must carry parameter_name; if it was created with positional ones, it does not.
Meta's components page shows both ways at creation. For positional, the examples are an ordered array, such as body_text: [[...]]. For named, the body has text like "Thank you, {{first_name}}! Your order number is {{order_number}}" and the examples are objects with param_name and example, under body_text_named_params. The Hub's internal documentation records, from reading Meta, that a template created without declaring the format is treated as positional.
| Format | Body text | How each parameter is sent |
|---|---|---|
| Positional | Hi {{1}}, order {{2}} | By order, no name: { "type": "text", "text": "Ana" } |
| Named | Hi {{name}}, order {{order}} | With name: { "type": "text", "parameter_name": "name", "text": "Ana" } |
The two sends side by side
Short answer: the difference fits on one line per parameter. The rest of the request, including template name, language and Idempotency-Key, is the same.
# POSITIONAL template: no parameter_name
"components": [{ "type": "body", "parameters": [
{ "type": "text", "text": "Ana" },
{ "type": "text", "text": "BR123456789" }
]}]
# NAMED template: each parameter with parameter_name
"components": [{ "type": "body", "parameters": [
{ "type": "text", "parameter_name": "name", "text": "Ana" },
{ "type": "text", "parameter_name": "order", "text": "BR123456789" }
]}]The names in the example are illustrative. parameter_name must equal the name the variable was created with, and the Hub quickstart shows the send call. The same parameter_name appears on the URL button send in Meta's components documentation, which shows the rule applies beyond the body.
Other causes of an incorrect format
Short answer: 132012 is not limited to positional versus named. The value of each parameter also needs the type and structure the template expects.
- Wrong type: a currency sent as plain text when the template expects currency, or a date sent as a string instead of date_time.
- Incomplete structure: currency requires fallback_value, code and amount_1000; date_time requires fallback_value.
- Special characters in the URL button variable: Meta asks for special characters to be percent-encoded, and the documentation example turns "Gonçalves" into "Gon%C3%A7alves" and a space into %20.
- Media header parameter with the wrong object: an image header carries an image parameter with an id, not a text.
{ "type": "currency", "currency": {
"fallback_value": "R$ 89,90", "code": "BRL", "amount_1000": 89900 } }
{ "type": "date_time", "date_time": { "fallback_value": "March 12" } }
{ "type": "image", "image": { "id": "1234567890123456" } }Those three objects follow the examples in the Hub's send-template guide. When one of them comes out of format, the template refuses the value and Meta returns 132012.
How to diagnose in four steps
Short answer: compare the request with the template, in the order format, names, types, values. In that order the problem shows up in minutes.
- Open the template in WhatsApp Manager and see whether the variables appear as {{1}} or with names. That is the format the send must follow.
- If named, copy the names exactly (spelling matters) and confirm that each parameter carries parameter_name.
- Check each parameter's type against what the template asks for: text, currency, date or media.
- Review values with special characters, above all in the URL button variable, and encode them.
If your system has more than one template, store each one's format next to its definition. A template migrated from positional to named, or the reverse, is a new template from the send side, and the old code stops working.
How the error arrives through the Hub
Short answer: as 502 META_SEND_FAILED with details.meta_code equal to 132012, or, after a 202, as a message.status event with status failed. The Hub also validates the body before forwarding and answers INVALID_TEMPLATE when it does not match the schema.
INVALID_TEMPLATE is a Hub error, about structure, and 132012 is Meta's, about template content. A body can pass the first and fail the second. Do not treat 502 as transient: the same body produces the same result, so fix it and send with a new Idempotency-Key. The webhooks page shows where the asynchronous failure arrives.
Migrating the format without breaking sends
Short answer: create a new template, with another name, in the desired format, and switch the code when it is approved. There is no in-place conversion.
- Create the new template with a versioned name, for example order_on_the_way_v2, in the new format and with example values for every variable.
- Wait for approval. Until then, keep sending the old template.
- Behind a configuration flag, switch the code to build the payload in the new format. Keep the old one available to roll back.
- Watch the failures for a few days. Only then remove the old template, remembering that deleting a template without the hsm_id removes every version of that name, in every language.
That last point is a Hub detail: the hsm_id that comes in the listing limits the deletion to one language. Without it, Meta deletes all versions of the name. So never delete to "clean up" before you are sure no send still uses the name.
Logging and alerting
Short answer: log template, language, format and the error code of each template failure, and create an alert for 132012. It almost always signals a template or code change, not a data problem with one contact.
A 132012 that affects every send of a template started when someone changed something. A 132012 that affects isolated contacts usually comes from a specific value, such as a special character in the URL button variable. The difference between the two patterns says where to look: in the first case, the edit history of the template and of the code; in the second, the contact data and the encoding routine.
Frequently asked questions
What is the difference between 132000 and 132012?
132000 is about the number of values; 132012 is about their format, for example positional versus named, or the type and structure of each parameter.
Can I use parameter_name on a positional template?
No. The send must follow the format the template was created with. On a positional template, parameters go in order and without a name.
What happens if I do not declare the format when creating the template?
According to the reading of Meta's documentation recorded in the Hub, the default format is positional.
Is 132012 billed?
The documentation reviewed does not address billing for this code. The message was not accepted for delivery, and Meta bills per delivered message.
Fontes
Documentação oficial da Meta, conferida em 31 de outubro de 2026.