TSLA - Failed to resolve BalanceSheet Period: 2024-12-31
@dgunning Hi! Thanks for the library and all the updates.
somewhere between the versions 4.0.4 and 4.3.1 you made a change. As a result, annual reports (quarterly are fine) from Tesla get the following errors:
error in logs in v 4.8.0: 2025-08-15 14:56:16,272 - WARNING - edgar.core - Failed to resolve BalanceSheet for Tesla, Inc. (CIK: Unknown, Period: 2024-12-31). Low confidence match: 0.10. Found statements: ['Cover']. Confidence threshold not met 2025-08-15 14:56:16,280 - WARNING - edgar.core - Failed to resolve IncomeStatement for Tesla, Inc. (CIK: Unknown, Period: 2024-12-31). Low confidence match: 0.10. Found statements: ['Cover']. Confidence threshold not met 2025-08-15 14:56:16,282 - WARNING - edgar.core - Failed to resolve CashFlowStatement for Tesla, Inc. (CIK: Unknown, Period: 2024-12-31). Low confidence match: 0.10. Found statements: ['Cover']. Confidence threshold not met
error in v 4.3.1: File "...\site-packages\edgar\xbrl\statement_resolver.py", line 822, in find_statement raise ValueError(f"Low confidence match for type '{statement_type}': {conf:.2f}. Found statements: {found_statements}") ValueError: Low confidence match for type 'BalanceSheet': 0.10. Found statements: ['Cover']
version 4.0.4 didn't have these problems - annual reports were found.
My code: c = Company('TSLA') filings = c.latest("10-K", 7) xbrl = XBRL.from_filing(filings[0]) statements = xbrl.statements statements.balance_sheet()
That was fixed in a later release. I will check the changelog and let you know which specific version but you can update
That was fixed in a later release. I will check the changelog and let you know which specific version but you can update
4.8.0 is the latest version and it produces these errors.
Ok checking
The issue is that amended filing ("10-K/A") does not actually have the balance sheet
Skip the amended filing. Try as a workaround for now.
filings = c.get_filings(form="10-K", amendments=False).head(7)
It likely was not working in 4.0.4, that amended filing was likely not yet filed. I will improve the error message but there's no way to get the balance sheet since it is not in the xbrl for the amended filing
I added more logging when using XBRL.from_filing to alert when the filing is an amendment and it may not contain all statements. Apart from that it's not possible to fix