Back to Webhook Messages
Webhook Messages

Invalid Formula Length

A formula exceeds the maximum expression length. Shorten the expression or precompute parts into literal top-level fields.

The characters after the leading = must fit within the maximum formula length (currently 500 characters). Shorter expressions keep evaluation predictable.

Typical error detail (webhook log)

The formula in field limitPrice exceeds the maximum length of 500 characters.

How to fix

  • Shorten the expression: remove redundant clauses, combine logic more compactly, or precompute parts before sending the webhook.
  • If you are generating formulas programmatically, trim whitespace and avoid embedding huge string literals.
  • Split work across literal top-level fields (not other formula fields—see invalid formula dependency) so the remaining expression stays under the limit.

Example (conceptual)

Instead of one enormous ternary chain in limitPrice, send riskMultiplier and basePrice as literals and keep limitPrice to a smaller formula referencing signal.basePrice and signal.riskMultiplier.

Ready to put Invalid Formula Length to work?

Free 7-day trial

Set-up in 3 minutes

Paper account for testing

By continuing, you agree to the TradersPost Terms of Service and Privacy Policy. This site is protected by reCAPTCHA.