{"record":{"id":"e9c8ba8288b88b5d","repo":"OpenBB-finance/OpenBB","slug":"no-valid-topic-selected-please-select-a-valid-top","errorCode":null,"errorMessage":"No valid topic selected. Please select a valid topic.","messagePattern":"No valid topic selected\\. Please select a valid topic\\.","errorType":"exception","errorClass":"OpenBBError","httpStatus":null,"severity":"error","filePath":"openbb_platform/providers/fred/openbb_fred/models/manufacturing_outlook_ny.py","lineNumber":475,"sourceCode":"        ids: list = []\n        topics = query.topic.split(\",\")\n        seasonality = \"sa\" if query.seasonally_adjusted is True else \"not_sa\"\n        for t in topics:\n            future_series = list(\n                NY_MANUFACTURING_OUTLOOK.get(\"future_\" + t, {})\n                .get(seasonality, {})\n                .values()\n            )\n            current_series = list(\n                NY_MANUFACTURING_OUTLOOK.get(\"current_\" + t, {})\n                .get(seasonality, {})\n                .values()\n            )\n            topic_ids = future_series + current_series\n            ids.extend(topic_ids)\n\n        if not ids:\n            raise OpenBBError(\"No valid topic selected. Please select a valid topic.\")\n\n        frequency = query.frequency[:1].lower() if query.frequency else None\n\n        try:\n            response = await FredSeriesFetcher.fetch_data(\n                dict(\n                    symbol=\",\".join(ids),\n                    start_date=query.start_date,\n                    end_date=query.end_date,\n                    transform=query.transform,\n                    frequency=frequency,\n                    aggregation_method=query.aggregation_method,\n                ),\n                credentials,\n            )\n        except Exception as e:\n            message = str(e) or f\"FRED request failed ({type(e).__name__}).\"\n            raise OpenBBError(message) from e","sourceCodeStart":457,"sourceCodeEnd":493,"githubUrl":"https://github.com/OpenBB-finance/OpenBB/blob/3e071fcc2cd9f891cac6040ae60296dba76dab46/openbb_platform/providers/fred/openbb_fred/models/manufacturing_outlook_ny.py#L457-L493","documentation":"Error \"No valid topic selected. Please select a valid topic.\" thrown in OpenBB-finance/OpenBB.","triggerScenarios":"Thrown at openbb_platform/providers/fred/openbb_fred/models/manufacturing_outlook_ny.py:475 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Select at least one valid topic from the available choices.","Check the topic names against the documented list for this endpoint."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3e071fcc2cd9f891cac6040ae60296dba76dab46","analyzedAt":"2026-08-14T23:40:48.960Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}