{"record":{"id":"73d734df2c9c735e","repo":"actualbudget/actual","slug":"getcompileerror-e-state-compilestack","errorCode":null,"errorMessage":"getCompileError(e, state.compileStack)","messagePattern":"getCompileError\\(e, state\\.compileStack\\)","errorType":"exception","errorClass":"CompileError","httpStatus":null,"severity":"error","filePath":"packages/loot-core/src/server/aql/compiler.ts","lineNumber":1184,"sourceCode":"    }\n\n    if (groupExpressions.length > 0) {\n      const result = compileGroupBy(state, groupExpressions);\n      groupBy = 'GROUP BY ' + result;\n    }\n\n    // Orders don't matter if doing a single calculation\n    if (orderExpressions.length > 0) {\n      const result = compileOrderBy(state, orderExpressions);\n      orderBy = 'ORDER BY ' + result;\n    }\n\n    if (state.paths.size > 0) {\n      joins = compileJoins(state, tableRef, internalTableFilters);\n    }\n  } catch (e) {\n    if (e instanceof CompileError) {\n      throw getCompileError(e, state.compileStack);\n    }\n\n    throw e;\n  }\n\n  const sqlPieces: SqlPieces = {\n    select,\n    from: tableRef(tableName),\n    joins,\n    where,\n    groupBy,\n    orderBy,\n    limit,\n    offset,\n  };\n\n  return {\n    sqlPieces,","sourceCodeStart":1166,"sourceCodeEnd":1202,"githubUrl":"https://github.com/actualbudget/actual/blob/d4334cb6e6123f4d3bcea1ad6166608884c7e658/packages/loot-core/src/server/aql/compiler.ts#L1166-L1202","documentation":"Error \"getCompileError(e, state.compileStack)\" thrown in actualbudget/actual.","triggerScenarios":"Thrown at packages/loot-core/src/server/aql/compiler.ts:1184 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"d4334cb6e6123f4d3bcea1ad6166608884c7e658","analyzedAt":"2026-08-29T01:02:11.213Z","schemaVersion":2},"datasetVersion":"2026-08-29T02:17:18.158Z"}