{"record":{"id":"bc917127a47c4563","repo":"OpenBB-finance/OpenBB","slug":"invalid-value-s-for-dimension-frequency-fre","errorCode":null,"errorMessage":"Invalid value(s) for dimension 'frequency': ['{freq_val}']. Given prior selections {{'country': '{self.country}', 'indicator': '{indicator_str}'}}, available values are: {available_freqs}","messagePattern":"Invalid value\\(s\\) for dimension 'frequency': \\['(.+?)'\\]\\. Given prior selections (.+?)', 'indicator': '(.+?)'\\}\\}, available values are: (.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"openbb_platform/providers/imf/openbb_imf/models/economic_indicators.py","lineNumber":522,"sourceCode":"                    ]\n                    if invalid:\n                        raise ValueError(\n                            f\"Invalid value(s) for dimension 'country': {invalid}. \"\n                            + f\"Given prior selections {{'indicator': '{','.join(indicator_codes)}'}}, \"\n                            + f\"available values are: {sorted(available_countries)}\"\n                        )\n\n            if (\n                self.frequency\n                and self.frequency.lower() not in (\"all\", \"*\")  # type: ignore  # pylint: disable=E1101\n                and freq_dim in dim_order\n            ):\n                freq_map = {\"annual\": \"A\", \"quarter\": \"Q\", \"month\": \"M\", \"day\": \"D\"}\n                freq_val = freq_map.get(str(self.frequency).lower(), self.frequency)\n                available_freqs = get_available_values(freq_dim, dataflow_id)\n                if available_freqs and freq_val not in available_freqs:\n                    indicator_str = \",\".join(indicator_codes)\n                    raise ValueError(\n                        f\"Invalid value(s) for dimension 'frequency': ['{freq_val}']. \"\n                        f\"Given prior selections {{'country': '{self.country}', \"\n                        f\"'indicator': '{indicator_str}'}}, \"\n                        f\"available values are: {available_freqs}\"\n                    )\n\n            # Validate transform (skip if 'all' or '*')\n            if (\n                self.transform\n                and self.transform.lower() not in (\"all\", \"*\")  # type: ignore  # pylint: disable=E1101\n                and transform_dim\n                and transform_dim in dim_order\n            ):\n                _, _, transform_lookup, unit_lookup = detect_transform_dimension(\n                    dataflow_id\n                )\n                # Resolve user-friendly name to code\n                transform_val = self.transform.strip().lower()  # type: ignore  # pylint: disable=E1101","sourceCodeStart":504,"sourceCodeEnd":540,"githubUrl":"https://github.com/OpenBB-finance/OpenBB/blob/3e071fcc2cd9f891cac6040ae60296dba76dab46/openbb_platform/providers/imf/openbb_imf/models/economic_indicators.py#L504-L540","documentation":"Error \"Invalid value(s) for dimension 'frequency': ['{freq_val}']. Given prior selections {{'country': '{self.country}', 'indicator': '{indicator_str}'}}, available values are: {available_freqs}\" thrown in OpenBB-finance/OpenBB.","triggerScenarios":"Thrown at openbb_platform/providers/imf/openbb_imf/models/economic_indicators.py:522 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Choose a frequency from the listed available values.","Adjust the country or indicator selection if the desired frequency is unavailable."],"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-16T03:17:38.424Z"}