Skip to main content

Troubleshooting Raw Code and Formula Errors in the Dashpivot Template Editor

Identify why raw code and formula errors occur in the Dashpivot template editor and how to fix them.

Written by Nina Yang

The Dashpivot template editor includes a Raw Code view that lets you edit the template's underlying JSON directly. This is a powerful tool for making bulk changes or importing custom field configurations, but it requires the JSON to be valid and use the correct field types.

This article covers the errors you may see when working in Raw Code or when using table formulas.


"Invalid raw code."

Why this happens

The JSON entered in the Raw Code editor could not be parsed. This usually means the JSON is malformed — a missing bracket, comma, or quotation mark is enough to make the entire structure invalid.

How to fix it

  1. Review your raw code carefully for common JSON syntax errors: missing or extra commas, unclosed brackets or braces, and unmatched quotation marks.

  2. Fix the issue and paste the corrected JSON back into the Raw Code editor.

  3. Apply the changes and save.


"Invalid kinds used in raw code. Check the kind of the fields, table columns and table row columns."

Why this happens

The JSON is valid, but one or more fields, table columns, or table row columns use a kind value that is not supported by Dashpivot. This can happen if you copied JSON from an external source, manually typed a kind, or used a value that has since been renamed or removed.

How to fix it

  1. Review the kind values in your raw code against the full list of supported kinds in the JSON Conventions for Dashpivot Templates article.

  2. Replace any unsupported kind values with the correct ones.

  3. Apply the changes and save.


"Formula error. Please check all formulas."

Why this happens
One or more formula columns in a table contain an invalid formula expression. This can be caused by a syntax error in the formula, a reference to a column that no longer exists, or an unsupported formula function.

How to fix it

  1. Open the template and locate the table(s) with formula columns — the editor will expand the affected table to highlight the issue.

  2. Click the formula column to review the formula expression.

  3. Correct the formula and save the template.


"Some field IDs were invalid and have been regenerated."

Why this happens

One or more fields had duplicate or invalid IDs in the raw code. Dashpivot automatically regenerated valid IDs.

How to fix it

No action required — this is informational. Check that any logic rules or cross-references using those field IDs still work correctly after the regeneration.


"The number of fields exceeds the limit. Please remove some fields in order to Hide Raw Code and Save the template."

Why this happens

The raw code contains more fields than your plan allows. The template cannot be saved with raw code hidden until the field count is reduced.

How to fix it

Delete excess fields from the raw code until the count is within your plan's limit, then save.


If the issue continues

If you have followed the steps above and the error is still appearing:

  • Double-check your raw code against the JSON Conventions for Dashpivot Templates article, which covers required fields, supported kind values, and common structural mistakes.

  • Try reverting to the last saved version of the template and reapplying your changes incrementally.

  • Contact support with the template name and a copy of the raw code — this helps our team identify the issue faster.


Related articles

Did this answer your question?