{"record":{"id":"5e43a39cb0ba25fc","repo":"OpenBB-finance/OpenBB","slug":"no-valid-combinations-of-parameters-were-found","errorCode":null,"errorMessage":"No valid combinations of parameters were found.\n{','.join(messages) if messages else ''}","messagePattern":"No valid combinations of parameters were found\\.\n(.+?)","errorType":"validation","errorClass":"OpenBBError","httpStatus":null,"severity":"error","filePath":"openbb_platform/providers/fred/openbb_fred/models/bond_indices.py","lineNumber":498,"sourceCode":"                    if index not in (\"us\", \"europe\", \"emerging\"):\n                        message = (\n                            f\"Invalid index, {index}, for category: 'high_yield'.\"\n                            + f\" Must be one of {', '.join(BAML_CATEGORIES.get('high_yield', ''))}.\"  # type: ignore\n                        )\n                        messages.append(message)\n                    else:\n                        new_index.append(index)\n                if values[\"category\"] == \"emerging_markets\":\n                    if index not in BAML_CATEGORIES.get(\"emerging_markets\"):  # type: ignore\n                        message = (\n                            f\"Invalid index, {index}, for category: 'emerging_markets'.\"\n                            + f\" Must be one of {', '.join(BAML_CATEGORIES.get('emerging_markets', ''))}.\"  # type: ignore\n                        )\n                        messages.append(message)\n                    else:\n                        new_index.append(index)\n        if not new_index:\n            raise OpenBBError(\n                \"No valid combinations of parameters were found.\"\n                + f\"\\n{','.join(messages) if messages else ''}\"\n            )\n        if messages:\n            warn(\",\".join(messages))\n\n        symbols: list = []\n        if \"yield_curve\" in values[\"index\"]:\n            maturities_dict = BAML_CATEGORIES[values[\"category\"]][values[\"index\"]]  # type: ignore\n            maturities = list(maturities_dict)\n            symbols = [\n                maturities_dict[item][values[\"index_type\"]] for item in maturities\n            ]\n        else:\n            items = (\n                values[\"index\"]\n                if isinstance(values[\"index\"], list)\n                else values[\"index\"].split(\",\")","sourceCodeStart":480,"sourceCodeEnd":516,"githubUrl":"https://github.com/OpenBB-finance/OpenBB/blob/3e071fcc2cd9f891cac6040ae60296dba76dab46/openbb_platform/providers/fred/openbb_fred/models/bond_indices.py#L480-L516","documentation":"Raised in FredBondIndicesQueryParams validation (cls.validate) when none of the requested indices survive the category check - every entry was rejected as invalid for its BAML category ('emerging_markets' or the US categories), so new_index is empty. The message appends the collected per-index rejection reasons.","triggerScenarios":"Passing index names that are not keys in BAML_CATEGORIES for the chosen category, e.g. index='HY' with category='emerging_markets', or a comma-joined list where every item mismatches; also mixing a yield_curve index with a category that lacks it.","commonSituations":"Guessing index tickers instead of using the documented BAML names (e.g. 'EMHY' vs 'emerging_markets_high_yield'), wrong category spelling auto-defaulting, or copy-pasting indices from another provider's naming scheme.","solutions":["Read the appended messages - each names the invalid index and the allowed list for that category","Use category/index pairs exactly as defined in BAML_CATEGORIES in openbb_fred/models/bond_indices.py","Pass a single known-good index first (e.g. category='treasury', index='yield_curve') to confirm the parameter shape","Cross-check names against FRED's BAML series documentation"],"exampleFix":"# before\nres = await obb.economy.bond_indices(provider='fred', category='emerging_markets', index='EMHY').await_to_list()\n\n# after - use the exact key from BAML_CATEGORIES\nres = await obb.economy.bond_indices(provider='fred', category='emerging_markets', index='high_yield').await_to_list()","handlingStrategy":"validation","validationCode":"from openbb_fred.models.bond_indices import BAML_CATEGORIES\ncategory = values['category']\nindices = values['index'] if isinstance(values['index'], list) else values['index'].split(',')\nvalid = [i for i in indices if i in BAML_CATEGORIES.get(category, {})]\nassert valid, f'index must be one of {list(BAML_CATEGORIES.get(category, {}))}'","typeGuard":"def is_valid_bond_index(index: str, category: str, categories: dict) -> bool:\n    return index in categories.get(category, {})","tryCatchPattern":null,"preventionTips":["Source category/index options programmatically from BAML_CATEGORIES instead of hardcoding","Validate params before the API call - this error is fully client-side preventable","Read the appended rejection messages - they enumerate the allowed values"],"tags":["fred","bond-indices","parameter-validation","baml"],"backgroundTag":null,"analyzedSha":"3e071fcc2cd9f891cac6040ae60296dba76dab46","analyzedAt":"2026-08-14T23:40:48.960Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}