{"record":{"id":"48c07e8795d144d3","repo":"cube-js/cube","slug":"invalid-member-expression-format-error-message","errorCode":null,"errorMessage":"Invalid member expression format: ${error.message || error.toString()}","messagePattern":"Invalid member expression format: (.+?)","errorType":"validation","errorClass":"UserError","httpStatus":null,"severity":"error","filePath":"packages/cubejs-api-gateway/src/query.js","lineNumber":402,"sourceCode":"    if (f.dimension) {\n      res.member = f.dimension;\n      delete res.dimension;\n    }\n\n    return normalizeDateFilterValues(res, timezone);\n  })\n);\n\n/**\n * Parse incoming member expression\n * @param {unknown} expression\n * @throws {import('./UserError').UserError}\n * @returns {import('./types/query').InputMemberExpression}\n */\nfunction parseInputMemberExpression(expression) {\n  const { error } = inputMemberExpression.validate(expression);\n  if (error) {\n    throw new UserError(`Invalid member expression format: ${error.message || error.toString()}`);\n  }\n  return expression;\n}\n\n/**\n *\n * @param {Query} query\n * @param {CacheMode} cacheMode\n * @return {Query}\n */\nfunction normalizeQueryCacheMode(query, cacheMode) {\n  if (cacheMode !== undefined) {\n    query.cacheMode = cacheMode;\n  } else if (!query.cache) {\n    query.cacheMode = 'stale-if-slow';\n  } else {\n    query.cacheMode = query.cache;\n  }","sourceCodeStart":384,"sourceCodeEnd":420,"githubUrl":"https://github.com/cube-js/cube/blob/7d981676b36392fec34088b9afab6bdcad40207c/packages/cubejs-api-gateway/src/query.js#L384-L420","documentation":"Input validation in parseInputMemberExpression: the member expression object failed Joi schema validation (inputMemberExpression). It fires when an incoming member expression (e.g. for security contexts or parameterized members) does not match the expected shape of a valid member reference.","triggerScenarios":"Thrown at packages/cubejs-api-gateway/src/query.js:402 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Send a valid member expression, typically a string like \"Cube.name\" or an object with the expected member-locator shape.","Inspect the Joi error text embedded in the message to see which key or type violated the schema.","Check API version: the expression format may differ between client library versions."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7d981676b36392fec34088b9afab6bdcad40207c","analyzedAt":"2026-09-02T03:45:10.400Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T15:18:49.778Z"}