toeverything/AFFiNE · error · Error
Unsupported system order by: ${params.key}
Error message
Unsupported system order by: ${params.key} What it means
A provider-resolution guard in the system order-by provider: it looks up OrderByProvider('system:' + params.key) in the framework, and this fires when no such provider is registered. It means the sort config names a system order-by key that is not supported in the current build; the interpolated value is the unsupported params.key.
Source
Thrown at packages/frontend/core/src/modules/collection-rules/impls/order-by/system.ts:16
import { Service } from '@toeverything/infra';
import type { Observable } from 'rxjs';
import { OrderByProvider } from '../../provider';
import type { OrderByParams } from '../../types';
export class SystemOrderByProvider extends Service implements OrderByProvider {
orderBy$(
items$: Observable<Set<string>>,
params: OrderByParams
): Observable<string[]> {
const provider = this.framework.getOptional(
OrderByProvider('system:' + params.key)
);
if (!provider) {
throw new Error('Unsupported system order by: ' + params.key);
}
return provider.orderBy$(items$, params);
}
}
View on GitHub (pinned to b4c8548c09)
Solutions
- Use a supported system order-by key.
- Remove the unknown order-by parameter.
Defensive patterns
Strategy: type-guard
When it happens
Trigger: Thrown in the system order-by dispatcher when no order-by provider exists for the given system key.
Common situations: Occurs when a collection sorts by a system key not supported in this build; choose a supported sort field.
AI-assisted analysis of toeverything/AFFiNE@b4c8548c09 (2026-08-18).
Data as JSON: /api/errors/01faadd4434ec000.
Report an issue: GitHub.