{"record":{"id":"90ce9ec99d53c18e","repo":"toeverything/AFFiNE","slug":"unknown-property-90ce9e","errorCode":null,"errorMessage":"Unknown property","messagePattern":"Unknown property","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/frontend/core/src/modules/collection-rules/impls/group-by/property.ts","lineNumber":28,"sourceCode":"  extends Service\n  implements GroupByProvider\n{\n  constructor(\n    private readonly workspacePropertyService: WorkspacePropertyService\n  ) {\n    super();\n  }\n\n  groupBy$(\n    items$: Observable<Set<string>>,\n    params: GroupByParams\n  ): Observable<Map<string, Set<string>>> {\n    const property$ = this.workspacePropertyService.propertyInfo$(params.key);\n\n    return property$.pipe(\n      switchMap(property => {\n        if (!property) {\n          throw new Error('Unknown property');\n        }\n        const type = property.type;\n        const provider = this.framework.getOptional(\n          GroupByProvider('property:' + type)\n        );\n        if (!provider) {\n          throw new Error('Unsupported property type');\n        }\n        return provider.groupBy$(items$, params);\n      })\n    );\n  }\n}\n","sourceCodeStart":10,"sourceCodeEnd":42,"githubUrl":"https://github.com/toeverything/AFFiNE/blob/b4c8548c09da21b2898443559a5b846f0ccf5dd8/packages/frontend/core/src/modules/collection-rules/impls/group-by/property.ts#L10-L42","documentation":"A lookup guard in the property group-by provider: propertyInfo$(params.key) emitted null, meaning params.key does not correspond to any known workspace property. It fires when a collection's group-by config references a property key that is not registered in the workspace property service; the faulting input is params.key.","triggerScenarios":"Thrown in the group-by property dispatcher when no workspace property exists for the requested key.","commonSituations":"Occurs when a collection groups by a workspace property that was deleted or renamed; change the grouping to an existing property.","solutions":["Ensure the group-by property exists on the doc.","Pick a valid property from the schema."],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b4c8548c09da21b2898443559a5b846f0ccf5dd8","analyzedAt":"2026-08-18T21:16:52.546Z","contentChangedAt":"2026-08-18T21:16:52.546Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}