edgartools icon indicating copy to clipboard operation
edgartools copied to clipboard

[DATA] PortfolioInvestment.company_name names a category, asset class or sector instead of the company on category-led identifiers (CGBD, SLRC, PFX)

Open mmitc opened this issue 2 months ago • 0 comments

Data Quality Issue Details

Issue Type:

  • [x] Incorrect financial values (wrong numbers)
  • [ ] Missing financial data (expected data not present)
  • [ ] Calculation errors (formulas producing wrong results)
  • [ ] Data inconsistency (different values for same metric)
  • [ ] Historical data problems (changes over time)

Environment

EdgarTools Version: 5.59.1 Python Version: 3.14.3 Operating System: Windows 11

Financial Data Details

Company/Ticker:

  • CGBD (Carlyle Secured Lending, Inc., CIK 1544206)
  • SLRC (SLR Investment Corp., CIK 1418076)
  • PFX (PhenixFIN Corp, CIK 1490349)

Form Type: 10-Q Filing Date/Period: Q2 2026. CGBD 0001544206-26-000055, SLRC 0001193125-26-332726, PFX 0001213900-26-085667 Statement Type: Schedule of Investments (PortfolioInvestments.from_xbrl)

Specific Metric/Concept:

  • Financial line item: PortfolioInvestment.company_name, and parse_investment_identifier(...).company_name
  • XBRL concept name: us-gaap:InvestmentIdentifierAxis members

Data Issue

These three filers put a category, issuer class or asset class ahead of the company in the identifier, and some end it with Sector: Sub-sector. On those layouts the parser returns one of the category segments or the sub-sector, with or without member candidates. The company sits in the middle of the string, and it is never returned.

Expected value: the company segment. Actual value from EdgarTools (parse_investment_identifier(identifier).company_name, no candidates, 5.59.1):

identifier (verbatim) expected actual
Credit Fund | First Lien Debt | Yellowstone Buyer Acquisition, LLC | Consumer Goods: Durable Yellowstone Buyer Acquisition, LLC Durable
Investment | Non-Affiliated Issuer | First Lien Debt | Auctane, Inc. | Transportation: Cargo Auctane, Inc. Cargo
Investment | Affiliated Issuer | Structured Credit Partners JV, LLC 2 Structured Credit Partners JV, LLC Investment
Common Equity/Equity Interests/Warrants | KBH Topco LLC (Kingsbridge) | Multi-Sector Holdings KBH Topco LLC (Kingsbridge) Common Equity/Equity Interests/Warrants
Non-Controlled/Non-Affiliated Investments - Altisource S.A.R.L. - Services: Business - Equity Altisource S.A.R.L. Business - Equity
Controlled Investments - ECC Capital Corp. - Real Estate - Equity ECC Capital Corp. - ECC Capital Corp. - Real Estate

Scale, from PortfolioInvestments.from_xbrl(filing.xbrl()) on the three filings above. A position was counted wrong when its company_name is not the company its identifier names; each row was read by hand.

  • CGBD: 348 of 352 positions wrong (the field reads Investment, Credit Fund, Investment Funds or a sub-sector)
  • SLRC: 40 of 110
  • PFX: 27 of 96

The same layouts appear at least as far back as each filer's FY2025 10-K (period 2025-12-31).

Code to reproduce (offline, no network):

from edgar.bdc.investments import parse_investment_identifier

cases = {
    "Credit Fund | First Lien Debt | Yellowstone Buyer Acquisition, LLC | Consumer Goods: Durable":
        "Yellowstone Buyer Acquisition, LLC",
    "Investment | Non-Affiliated Issuer | First Lien Debt | Auctane, Inc. | Transportation: Cargo":
        "Auctane, Inc.",
    "Investment | Affiliated Issuer | Structured Credit Partners JV, LLC 2":
        "Structured Credit Partners JV, LLC",
    "Common Equity/Equity Interests/Warrants | KBH Topco LLC (Kingsbridge) | Multi-Sector Holdings":
        "KBH Topco LLC (Kingsbridge)",
    "Non-Controlled/Non-Affiliated Investments - Altisource S.A.R.L. - Services: Business - Equity":
        "Altisource S.A.R.L.",
    "Controlled Investments - ECC Capital Corp. - Real Estate - Equity":
        "ECC Capital Corp.",
}
for identifier, expected in cases.items():
    got = parse_investment_identifier(identifier).company_name
    print("OK " if got == expected else "BAD", repr(got), "expected", repr(expected))

Output at 5.59.1: all six lines print BAD, with the actual values in the table above.

Live check, one filing:

from edgar import find
from edgar.bdc.investments import PortfolioInvestments
held = PortfolioInvestments.from_xbrl(find("0001544206-26-000055").xbrl())
from collections import Counter
print(len(held), Counter(p.company_name for p in held).most_common(5))

What the three layouts have in common. The first segment is a portfolio category (Investment, Credit Fund, Controlled Investments), an issuer class, or an asset class (Common Equity/Equity Interests/Warrants, First Lien Debt). A trailing Sector: Sub-sector is also taken as the name. Not traced further in the source. One direction: in a pipe- or dash-separated identifier, skip segments that match the module's own INVESTMENT_TYPES vocabulary, portfolio-category and issuer-class phrases, and any X: Y sector segment, and take the first remaining segment.

Separately, for PFX: from_xbrl also returns bare category rows as positions, with the identifiers Investments, Controlled Investments and Non-Controlled/Non-Affiliated Investments. These look like the filer's subtotal members, not holdings.

Related: on <Company> | <Industry> | <Instrument> identifiers, a different defect returns the instrument (First Lien) when member candidates are passed. That is #1373.

mmitc avatar Sep 27 '26 18:09 mmitc