Budibase/budibase · error · Error

Unable to sort by ${field}

Error message

Unable to sort by ${field}

What it means

Error "Unable to sort by ${field}" thrown in Budibase/budibase.

Source

Thrown at packages/server/src/sdk/workspace/rows/search/internal/sqs.ts:442

  if (params.sort) {
    const resolveSortEntry = (
      field: string,
      direction?: SortOrder,
      type?: SortType
    ) => {
      const isAggregateField = aggregations.some(agg => agg.name === field)
      if (isAggregateField) {
        return {
          key: field,
          direction: direction || SortOrder.ASCENDING,
          type: type || SortType.NUMBER,
        }
      }

      const sortField = table.schema[field]
      if (!sortField) {
        throw new Error(`Unable to sort by ${field}`)
      }

      const responseType = isStaticFormula(sortField)
        ? sortField.responseType
        : sortField.type
      const sortType =
        type ||
        (responseType === FieldType.NUMBER ? SortType.NUMBER : SortType.STRING)

      return {
        key: mapToUserColumn(sortField.name),
        direction: direction || SortOrder.ASCENDING,
        type: sortType as SortType,
      }
    }

    if (typeof params.sort === "string") {
      const entry = resolveSortEntry(

View on GitHub (pinned to a81a902e9a)

When it happens

Trigger: Thrown at packages/server/src/sdk/workspace/rows/search/internal/sqs.ts:442 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of Budibase/budibase@a81a902e9a (2026-08-29). Data as JSON: /api/errors/c78d6374db1478cf. Report an issue: GitHub.