Missing specific data in Balance Sheet (different than #503)
Issue Type
- [ X] Data Quality Issue (incorrect financial values, missing data)
- [ ] XBRL Parsing Issue (statement rendering, concept mapping)
- [ ] Filing Access Issue (download failures, attachment problems)
- [ ] Performance Issue (slow operations, memory problems)
- [ ] Compatibility Issue (platform/dependency conflicts)
- [ ] Documentation Issue (unclear instructions, missing examples)
Environment
EdgarTools Version: 4.29.0 Python Version: 3.13.9 Operating System: macOS
Bug Description
I'm finding that there must be some issue in the parsing of the Balance Sheets because data is occasionally missing. I can see it in the actual paper filing/ html filing but it's not in the xbrl and therefore the Balance Sheet is out of balance.
Reproduction
Company/Ticker: BBY Time Period: from 2021 onward Relevant Forms: 10-K
Missing Unredeemed gift card liabilities (line right after Accounts payable) In 2021 its value is 317 million. I know the data must be in the original xbrl from the filer because it's present in the flat files the SEC produces that I've been running my extracts from until I get edgartools to work for me. There must be some corner condition in the xbrl parser where this isn't getting picked up.
Additional Context
This issue will be handled using EdgarTools' systematic issue resolution workflow. A reproduction test will be created to verify the fix.
Thanks for the report @mpreiss9! This is classified as P0 CRITICAL and appears related to Issue #503.
Classification: CRITICAL
Release Type: Point Release 4.30.1 (combined with #503)
Timeline: 1-2 days
Priority: HIGHEST
Beads Issue: edgartools-bjt
Rationale: Data accuracy issue - line items present in SEC files but missing from EdgarTools output.
Investigation Plan
Since you reported both #503 and #504 within hours of each other, we suspect a common root cause:
- #503: Statement selection choosing wrong presentation roles (fragments)
- #504: Line items missing despite being in XBRL data
Both suggest issues in edgar/xbrl/statement_resolver.py or related parsing logic.
Next Steps
- Investigate together with #503 (edgartools-lmy)
- Create reproduction test for BBY 2021 unredeemed gift card liabilities
- Verify line item exists in raw XBRL but not in parsed output
- Identify why parser is filtering/missing this item
Tracking
- Beads Issue: edgartools-bjt (P0 CRITICAL)
- Related to: Issue #503 (edgartools-lmy)
- Combined Fix: Will address both issues in point release 4.30.1
We'll update both issues as investigation progresses.
I've got another example, showing it happens in more current filings too. Company APD 2023 and on. In 2023 after Long term debt of 9280.6 there should be Long-term debt – related party of 150.7. Without that the balance sheet doesn't balance.
Something you might want to look into: On income statements you provide dimension_labels and is_dimension. You don't for balance sheets and I have a hunch that the missing values might be dimensional and you are scrubbing them out.
Dimensions are so tricky because they are often misused by filers. I can't tell you how many times I find every row for a fact on the income statement is flagged as dimensional (even revenue!). So simple dropping of all dimensional data is dangerous. OTOH leaving it in can be a mess. I've mostly been able to manage this on the income statement where you provide it, using some tricky logic. But I can't do anything on the balance sheet if I never get the data in the first place.
I'm just going to assume more and different examples will help. HEI 2015 onward, missing Class A Common Stock value in equity part of balance sheet. 400 thousand in 2015. Other equity items are present.
I don't know if this is part of the same problem or just a specific filing glitch you can't do much about. For PG 2021 (year-end 6/30/21) the balance sheet has a value of zero for us-gaap_PreferredStockValue. Otther years have a value. It should be 870 million for 2021.
Another example. HSY most years (for example 2015) not picking up value of class B shares in equity section of balance sheet. It should be 60,620 thousand in 2015 but the item is missing altogether. I'm seeing a pattern develop and I'm more and more convinced the solution is to provide the dimension columns for balance sheet as you do for income statements and filter the rows less strictly.
Hershey (HSY) 2015 balance sheet with Class B Equity (POST FIX)