edgartools icon indicating copy to clipboard operation
edgartools copied to clipboard

Footnotes

Open mpreiss9 opened this issue 1 year ago • 1 comments

Issue Type

  • [ X] Data Quality Issue (incorrect financial values, missing data)
  • [ ] XBRL Parsing Issue (statement rendering, concept mapping)
  • [ X] 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.21.1 **Python Version: 3.13.5
**Operating System: macOS

Bug Description

Getting excessive (many hundreds) Footnote arc references undefined footnote: errors. See for example tickers APD (2015), COP (year unclear), GE (2015?)

What actually happened: A clear description of what went wrong.

Error message (if any):

Paste any error messages here
Footnote arc references undefined footnote:

## Reproduction
APD (2015), COP (year unclear), GE (2015?) all 10-K

**Minimal code to reproduce:**
```python
# Paste the minimal code that reproduces the issue
from edgar import Company

company = Company("AAPL")
# ... rest of reproduction code

Additional Context

Add any other context about the problem here. Screenshots, related issues, etc.


This issue will be handled using EdgarTools' systematic issue resolution workflow. A reproduction test will be created to verify the fix.

mpreiss9 avatar Nov 07 '25 17:11 mpreiss9

Classification: NORMAL

Release Type: Minor Release v4.27.0
Timeline: Scheduled (week of 2025-11-11)
Priority: MEDIUM (P2)

Rationale:

Thank you for reporting this! I've successfully reproduced the issue with the filings you mentioned:

  • APD 2015 10-K: 121 warnings
  • GE 2015 10-K: 237 warnings
  • COP 2023 10-K: 0 warnings (modern filings unaffected)

Good News: This is a user experience issue, not a data accuracy problem. The warnings are annoying console spam, but:

  • ✅ All XBRL data parses correctly
  • ✅ Financial statements work perfectly
  • ✅ All facts are extracted successfully
  • ✅ No functionality is blocked

Root Cause: The XBRL parser encounters footnote arc references (e.g., lbl_footnote_0) that don't exist in the footnote definitions. This is common in older filings (2015 and earlier) due to inconsistent footnote ID naming conventions. The parser gracefully handles these missing references, but emits a warning for each one, resulting in excessive console spam.

Fix Plan: Scheduled for v4.27.0 (next minor release):

  1. Add warning deduplication (warn once per unique footnote ID)
  2. Downgrade from WARNING to DEBUG level for this specific message
  3. Add summary message: "X footnote arc references could not be resolved (non-critical)"
  4. Add regression tests to prevent this from getting worse

Workaround (until fix is released):

import logging
logging.getLogger('edgar.core').setLevel(logging.ERROR)  # Suppress warnings

This is classified as a NORMAL bug (not critical) because it doesn't affect data accuracy or block core functionality. It will be fixed in the next scheduled release along with other improvements.

Tracking: Added to v4.27.0 roadmap in PRIORITIES.md and ROADMAP.md

dgunning avatar Nov 07 '25 18:11 dgunning