Fathym
Menu

Queries

Quick check

  1. Does the surface have data? ProductData | take 10.
  2. Is the KQL valid?
  3. Does the time window contain data?

Common issues

Empty results - widen the window, check field names (case-sensitive), and add filters one at a time. Full walk-through: Query returns empty.

Syntax error

ErrorCauseFix
unexpected characterwrong quotes/operatordouble quotes for strings
column not foundfield typoProductData | take 1 | project *
invalid operatorwrong comparisonuse == not =
cannot converttype mismatchcheck the data types

Slow query - put the time filter first:

// slow: scans everything
ProductData | where Campaign == "spring"
// fast: time filter first
ProductData | where Timestamp > ago(1h) | where Campaign == "spring"

KQL help

| where Status =~ "active"            // case-insensitive
| where Signups between (10 .. 100)   // range
| where Timestamp > ago(7d)           // relative time
| where isnotnull(Signups)            // exclude nulls

Calling it over the API

  • 404 - the query name is wrong or it isn't saved (not just drafted).
  • 401 / 403 - token expired or outside your access rights.
  • 500 - the query errored; test it in the surface first.

See KQL Basics and the REST API.

On this page