Back to Webhook Messages
Webhook Messages

Invalid Formula Result

A formula must evaluate to a string, number, boolean, or null. Adjust the expression so the result is a single scalar.

The formula parsed and ran, and the next step is to ensure the value it produced is a single scalar: a string, a number (integer or float), a boolean, or null.

Typical error detail (webhook log)

The formula in field limitPrice evaluated to a non-scalar value. Formulas must resolve to a string, number, or boolean.

(null is accepted when the expression yields null—for example an optional branch of a ternary.)

Example — reference resolves to a non-scalar

{
  "ticker": "SPY",
  "action": "buy",
  "tags": ["a", "b"],
  "x": "=signal.tags"
}

Fix — pick a scalar field or derive a scalar

{
  "ticker": "SPY",
  "action": "buy",
  "tagCount": "2",
  "x": "=signal.tagCount"
}

Or combine only scalar operands with the supported operators (see invalid formula operator) so the final value is one string, number, boolean, or null.

Fix — aim for one scalar value

If the expression would combine values into a list or structure, reshape it so the last step is still one string, number, boolean, or null—for example by referencing a single numeric or string field, or by using arithmetic and comparisons on scalars only.

Ready to put Invalid Formula Result 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.