Form 40-17F2 Files Dataset

The Form 40-17F2 Files Dataset collects every Form 40-17F2 and Form 40-17F2/A certificate filed on EDGAR by registered management investment companies under Rule 17f-2 of the Investment Company Act of 1940. Each record is a single filing event — an accession-numbered folder carrying a metadata.json envelope and the primary certificate document produced by an independent public accountant attesting to the self-custody of portfolio securities. The underlying form, administratively titled Form N-17f-2, is the vehicle through which the accountant's examination report and the paired management compliance statement reach the Commission. Filings span the electronic-submission era, with the earliest records in the dataset dating to July 1997, and the dataset is distributed as ZIP containers covering TXT, JSON, HTML, and PDF artifacts.

Update Frequency
Daily
Updated at
2026-05-07
Earliest Sample Date
1997-07-01
Total Size
101.5 MB
Total Records
24,791
Container Format
ZIP
Content Types
TXT, JSON, HTML, PDF
Form Types
40-17F2, 40-17F2/A

Dataset APIs

Programmatically retrieve the full list of dataset archive files, download URLs and dataset metadata.

Dataset Index JSON API

Download the entire dataset as a single archive file.

Download Entire Dataset:

Download a single container file (e.g. monthly archive) from the dataset.

Download Single Container:

Dataset Files

347 files · 101.5 MB
Download All
2026-05.zip136.0 KB79 records
2026-04.zip208.5 KB69 records
2026-03.zip423.9 KB54 records
2026-02.zip113.1 KB20 records
2026-01.zip184.0 KB40 records
2025-12.zip256.9 KB46 records
2025-11.zip136.5 KB23 records
2025-10.zip856.3 KB166 records
2025-09.zip215.9 KB33 records
2025-08.zip468.9 KB39 records
2025-07.zip174.6 KB34 records
2025-06.zip367.8 KB100 records
2025-05.zip554.7 KB71 records
2025-04.zip113.3 KB12 records
2025-03.zip329.7 KB37 records
2025-02.zip385.4 KB70 records
2025-01.zip319.6 KB67 records
2024-12.zip126.5 KB19 records
2024-11.zip237.3 KB64 records
2024-10.zip714.4 KB79 records
2024-09.zip173.8 KB39 records
2024-08.zip1.9 MB199 records
2024-07.zip60.0 KB9 records
2024-06.zip239.1 KB65 records
2024-05.zip183.9 KB55 records
2024-04.zip117.0 KB23 records
2024-03.zip113.0 KB21 records
2024-02.zip181.6 KB39 records
2024-01.zip178.8 KB33 records
2023-12.zip107.3 KB16 records
2023-11.zip216.3 KB38 records
2023-10.zip274.6 KB76 records
2023-09.zip226.9 KB29 records
2023-08.zip38.0 KB7 records
2023-07.zip169.2 KB27 records
2023-06.zip346.1 KB84 records
2023-05.zip360.6 KB85 records
2023-04.zip50.0 KB8 records
2023-03.zip49.8 KB12 records
2023-02.zip186.6 KB38 records
2023-01.zip37.0 KB7 records
2022-12.zip220.7 KB41 records
2022-11.zip290.3 KB74 records
2022-10.zip475.9 KB42 records
2022-09.zip137.6 KB17 records
2022-08.zip24.7 KB4 records
2022-07.zip286.0 KB69 records
2022-06.zip252.3 KB65 records
2022-05.zip15.6 KB3 records
2022-04.zip42.0 KB10 records
2022-03.zip133.0 KB27 records
2022-02.zip424.5 KB59 records
2022-01.zip374.2 KB63 records
2021-12.zip447.1 KB42 records
2021-11.zip65.1 KB15 records
2021-10.zip701.2 KB104 records
2021-09.zip139.3 KB24 records
2021-08.zip222.7 KB65 records
2021-07.zip149.5 KB51 records
2021-06.zip19.0 KB6 records
2021-05.zip460.0 KB44 records
2021-04.zip37.4 KB7 records
2021-03.zip92.4 KB15 records
2021-02.zip202.6 KB46 records
2021-01.zip192.4 KB28 records
2020-12.zip561.1 KB60 records
2020-11.zip451.5 KB40 records
2020-10.zip237.5 KB45 records
2020-09.zip254.4 KB74 records
2020-08.zip251.2 KB75 records
2020-07.zip214.9 KB68 records
2020-06.zip35.6 KB8 records
2020-05.zip360.4 KB46 records
2020-04.zip104.5 KB22 records
2020-03.zip49.1 KB11 records
2020-02.zip301.0 KB64 records
2020-01.zip305.8 KB50 records
2019-12.zip881.4 KB126 records
2019-11.zip110.2 KB13 records
2019-10.zip358.6 KB103 records
2019-09.zip459.8 KB120 records
2019-08.zip98.0 KB26 records
2019-07.zip248.8 KB79 records
2019-06.zip18.6 KB4 records
2019-05.zip151.7 KB32 records
2019-04.zip90.6 KB14 records
2019-03.zip167.3 KB27 records
2019-02.zip168.1 KB26 records
2019-01.zip97.9 KB12 records
2018-12.zip57.7 KB13 records
2018-11.zip117.7 KB19 records
2018-10.zip188.8 KB35 records
2018-09.zip489.9 KB125 records
2018-08.zip287.6 KB97 records
2018-07.zip202.7 KB69 records
2018-06.zip118.2 KB22 records
2018-05.zip88.4 KB22 records
2018-04.zip423.9 KB61 records
2018-03.zip756.4 KB89 records
2018-02.zip203.0 KB40 records
2018-01.zip233.3 KB50 records
2017-12.zip129.0 KB25 records
2017-11.zip353.2 KB45 records
2017-10.zip1.6 MB256 records
2017-09.zip101.7 KB23 records
2017-08.zip236.8 KB72 records
2017-07.zip335.4 KB99 records
2017-06.zip61.8 KB13 records
2017-05.zip35.5 KB13 records
2017-04.zip435.4 KB66 records
2017-03.zip113.0 KB25 records
2017-02.zip130.6 KB27 records
2017-01.zip257.4 KB50 records
2016-12.zip82.6 KB14 records
2016-11.zip681.2 KB83 records
2016-10.zip757.7 KB129 records
2016-09.zip196.9 KB67 records
2016-08.zip1.4 MB233 records
2016-07.zip208.0 KB68 records
2016-06.zip69.7 KB16 records
2016-05.zip54.8 KB13 records
2016-04.zip156.6 KB16 records
2016-03.zip63.0 KB14 records
2016-02.zip139.4 KB32 records
2016-01.zip355.4 KB45 records
2015-12.zip279.8 KB51 records
2015-11.zip76.8 KB16 records
2015-10.zip306.1 KB99 records
2015-09.zip90.4 KB14 records
2015-08.zip266.2 KB85 records
2015-07.zip311.1 KB81 records
2015-06.zip616.4 KB81 records
2015-05.zip133.3 KB25 records
2015-04.zip52.0 KB9 records
2015-03.zip120.4 KB24 records
2015-02.zip195.6 KB46 records
2015-01.zip185.7 KB27 records
2014-12.zip76.0 KB17 records
2014-11.zip392.4 KB56 records
2014-10.zip388.3 KB60 records
2014-09.zip585.3 KB116 records
2014-08.zip378.3 KB91 records
2014-07.zip240.1 KB66 records
2014-06.zip345.4 KB52 records
2014-05.zip151.0 KB29 records
2014-04.zip55.5 KB13 records
2014-03.zip205.1 KB23 records
2014-02.zip59.8 KB16 records
2014-01.zip128.6 KB28 records
2013-12.zip348.7 KB50 records
2013-11.zip500.3 KB132 records
2013-10.zip771.6 KB183 records
2013-09.zip498.9 KB130 records
2013-08.zip293.8 KB45 records
2013-07.zip361.5 KB56 records
2013-06.zip760.7 KB101 records
2013-05.zip34.6 KB7 records
2013-04.zip256.6 KB40 records
2013-03.zip83.9 KB18 records
2013-02.zip70.4 KB20 records
2013-01.zip117.3 KB26 records
2012-12.zip565.5 KB146 records
2012-11.zip153.2 KB28 records
2012-10.zip865.8 KB192 records
2012-09.zip741.2 KB171 records
2012-08.zip155.3 KB27 records
2012-07.zip127.2 KB24 records
2012-06.zip109.4 KB19 records
2012-05.zip146.5 KB25 records
2012-04.zip43.3 KB8 records
2012-03.zip410.1 KB68 records
2012-02.zip54.6 KB17 records
2012-01.zip352.4 KB48 records
2011-12.zip177.0 KB44 records
2011-11.zip640.4 KB174 records
2011-10.zip509.3 KB75 records
2011-09.zip556.4 KB155 records
2011-08.zip680.0 KB174 records
2011-07.zip29.6 KB6 records
2011-06.zip120.2 KB24 records
2011-05.zip295.9 KB70 records
2011-04.zip94.4 KB24 records
2011-03.zip162.6 KB40 records
2011-02.zip174.0 KB51 records
2011-01.zip372.5 KB92 records
2010-12.zip184.6 KB48 records
2010-11.zip571.3 KB136 records
2010-10.zip558.9 KB146 records
2010-09.zip336.2 KB74 records
2010-08.zip258.9 KB63 records
2010-07.zip276.0 KB59 records
2010-06.zip146.1 KB38 records
2010-05.zip378.4 KB73 records
2010-04.zip187.9 KB50 records
2010-03.zip203.7 KB58 records
2010-02.zip134.9 KB41 records
2010-01.zip406.6 KB100 records
2009-12.zip424.9 KB122 records
2009-11.zip351.0 KB77 records
2009-10.zip285.5 KB72 records
2009-09.zip286.1 KB55 records
2009-08.zip258.5 KB51 records
2009-07.zip190.7 KB36 records
2009-06.zip418.3 KB79 records
2009-05.zip305.0 KB68 records
2009-04.zip162.7 KB37 records
2009-03.zip160.9 KB53 records
2009-02.zip323.1 KB59 records
2009-01.zip145.7 KB26 records
2008-12.zip75.1 KB19 records
2008-11.zip196.9 KB40 records
2008-10.zip1.0 MB179 records
2008-09.zip765.2 KB192 records
2008-08.zip1.1 MB364 records
2008-07.zip547.4 KB144 records
2008-06.zip65.9 KB18 records
2008-05.zip215.5 KB54 records
2008-04.zip434.4 KB101 records
2008-03.zip305.8 KB77 records
2008-02.zip485.9 KB118 records
2008-01.zip136.8 KB33 records
2007-12.zip372.0 KB52 records
2007-11.zip379.3 KB88 records
2007-10.zip402.3 KB70 records
2007-09.zip624.6 KB155 records
2007-08.zip534.3 KB137 records
2007-07.zip1.6 MB620 records
2007-06.zip198.5 KB49 records
2007-05.zip519.1 KB127 records
2007-04.zip167.8 KB43 records
2007-03.zip271.5 KB92 records
2007-02.zip212.9 KB60 records
2007-01.zip367.9 KB96 records
2006-12.zip497.8 KB145 records
2006-11.zip387.0 KB99 records
2006-10.zip1.2 MB348 records
2006-09.zip378.1 KB95 records
2006-08.zip1.2 MB363 records
2006-07.zip1.4 MB551 records
2006-06.zip733.0 KB232 records
2006-05.zip177.1 KB41 records
2006-04.zip98.1 KB21 records
2006-03.zip226.7 KB52 records
2006-02.zip135.7 KB37 records
2006-01.zip189.9 KB54 records
2005-12.zip157.2 KB38 records
2005-11.zip112.6 KB32 records
2005-10.zip128.8 KB33 records
2005-09.zip630.2 KB231 records
2005-08.zip999.6 KB394 records
2005-07.zip357.4 KB99 records
2005-06.zip157.3 KB46 records
2005-05.zip177.1 KB71 records
2005-04.zip107.1 KB29 records
2005-03.zip867.9 KB251 records
2005-02.zip207.4 KB62 records
2005-01.zip147.4 KB43 records
2004-12.zip218.4 KB56 records
2004-11.zip198.0 KB55 records
2004-10.zip159.2 KB47 records
2004-09.zip666.8 KB237 records
2004-08.zip1.1 MB434 records
2004-07.zip132.0 KB38 records
2004-06.zip170.9 KB51 records
2004-05.zip84.2 KB20 records
2004-04.zip670.0 KB256 records
2004-03.zip1.2 MB465 records
2004-02.zip107.7 KB34 records
2004-01.zip153.1 KB44 records
2003-12.zip265.7 KB70 records
2003-11.zip71.8 KB19 records
2003-10.zip364.4 KB112 records
2003-09.zip272.4 KB75 records
2003-08.zip261.6 KB70 records
2003-07.zip736.7 KB269 records
2003-06.zip807.1 KB278 records
2003-05.zip995.3 KB374 records
2003-04.zip98.5 KB28 records
2003-03.zip449.9 KB128 records
2003-02.zip458.3 KB102 records
2003-01.zip305.3 KB92 records
2002-12.zip230.7 KB65 records
2002-11.zip100.6 KB29 records
2002-10.zip230.5 KB65 records
2002-09.zip113.8 KB35 records
2002-08.zip230.0 KB65 records
2002-07.zip93.3 KB31 records
2002-06.zip271.7 KB97 records
2002-05.zip256.6 KB63 records
2002-04.zip196.3 KB53 records
2002-03.zip246.0 KB82 records
2002-02.zip192.3 KB59 records
2002-01.zip287.3 KB85 records
2001-12.zip203.2 KB71 records
2001-11.zip376.8 KB135 records
2001-10.zip248.6 KB86 records
2001-09.zip97.6 KB23 records
2001-08.zip137.9 KB49 records
2001-07.zip626.2 KB261 records
2001-06.zip425.5 KB139 records
2001-05.zip171.9 KB41 records
2001-04.zip105.3 KB29 records
2001-03.zip184.8 KB65 records
2001-02.zip120.7 KB39 records
2001-01.zip119.7 KB40 records
2000-12.zip118.2 KB38 records
2000-11.zip132.6 KB31 records
2000-10.zip309.7 KB97 records
2000-09.zip161.3 KB55 records
2000-08.zip403.9 KB128 records
2000-07.zip120.1 KB36 records
2000-06.zip307.2 KB98 records
2000-05.zip129.7 KB35 records
2000-04.zip262.9 KB56 records
2000-03.zip442.0 KB128 records
2000-02.zip173.2 KB64 records
2000-01.zip162.7 KB49 records
1999-12.zip86.8 KB40 records
1999-11.zip146.1 KB52 records
1999-10.zip330.9 KB108 records
1999-09.zip149.7 KB41 records
1999-08.zip77.6 KB25 records
1999-07.zip237.5 KB76 records
1999-06.zip239.3 KB56 records
1999-05.zip323.9 KB110 records
1999-04.zip124.8 KB35 records
1999-03.zip130.1 KB39 records
1999-02.zip57.2 KB20 records
1999-01.zip146.5 KB46 records
1998-12.zip139.3 KB52 records
1998-11.zip137.1 KB46 records
1998-10.zip131.7 KB37 records
1998-09.zip127.3 KB44 records
1998-08.zip197.1 KB41 records
1998-07.zip62.2 KB19 records
1998-06.zip98.4 KB32 records
1998-05.zip108.0 KB26 records
1998-04.zip127.0 KB34 records
1998-03.zip126.6 KB46 records
1998-02.zip117.5 KB41 records
1998-01.zip51.2 KB22 records
1997-12.zip71.9 KB21 records
1997-11.zip44.0 KB19 records
1997-10.zip31.5 KB10 records
1997-09.zip54.2 KB22 records
1997-08.zip38.7 KB12 records
1997-07.zip27.2 KB8 records

What This Dataset Contains

The dataset covers the full EDGAR population of Form 40-17F2 certificates and their amendments (Form 40-17F2/A) filed by registered management investment companies that self-custody portfolio securities and similar investments. Form 40-17F2 implements the certification requirement of Rule 17f-2(f): Section 17(f) of the Investment Company Act constrains how a registered management investment company may hold its portfolio securities, and Rule 17f-2 is the narrow exception that permits self-custody — the company holding its own securities, or holding them with an affiliated bank or transfer agent — conditional on verification by an independent public accountant at least three times each fiscal year, with at least two of those verifications conducted on a surprise basis. Form 40-17F2 is the vehicle for transmitting the resulting accountant's certificate to the Commission. Form 40-17F2/A is used solely to amend a previously filed certificate.

The unit of observation is one filing event, not one examination event. A single 40-17F2 routinely bundles several independent examination cycles into one document, so the number of certified examinations in the dataset is larger than the number of records. Coverage begins in July 1997, when the earliest electronic 40-17F2 submissions appear on EDGAR, and continues through the most recent refresh. The dataset is distributed as ZIP containers organized by month; inside each container, every record folder carries a metadata.json envelope plus the primary form document — HTML for the vast majority of modern filings, with TXT or PDF appearing for some historical and idiosyncratic filings.

Content Structure of a Single Record

What one record represents

One record is a single Form 40-17F2 submission (or its amendment, Form 40-17F2/A) filed on EDGAR by a registered management investment company under Rule 17f-2 of the Investment Company Act of 1940. Physically, a record is one accession-numbered folder that carries a metadata.json envelope derived from the EDGAR submission header and the primary 40-17F2 document — the certificate of accounting itself — as rendered HTML (or, for a minority of filings, TXT or PDF). The folder name is the 18-digit, no-dash accession number; the dashed form (NNNNNNNNNN-NN-NNNNNN) is preserved inside metadata.json.accessionNo.

What the underlying SEC filing is

The form is administratively titled Form N-17f-2; the EDGAR form-type code is 40-17F2. Its operative content is the accountant's examination report on management's assertion of compliance with paragraphs (b) and (c) of Rule 17f-2 — that securities were physically deposited with proper safeguards, that access was properly controlled, and that records were properly maintained — together with the management compliance statement that the accountant's report opines on.

Container-level structure of one record

Each accession folder materializes two artifacts for modern filings:

  • metadata.json — a flat JSON object decomposed from the EDGAR submission header.
  • A single primary form document, typically an .htm file containing the SGML-wrapped HTML rendering of the certificate. The filename is filer-determined — common shapes include d<digits>d4017f2.htm, <short>_40-17f2.htm, and ea<digits>-01_4017f2.htm — but the embedded SGML <TYPE>40-17F2 and <SEQUENCE>1 headers are stable.

The file-types found in the dataset are TXT, JSON, HTML, and PDF, though in practice the overwhelming majority of modern records consist of one HTML primary document plus the JSON envelope. The complete-submission .txt SGML wrapper that EDGAR generates for every filing is not stored on disk; only its URL is preserved in metadata.json.linkToTxt. Image attachments referenced by the original submission as GRAPHIC documents — typically auditor letterhead JPEGs and signature images — are enumerated inside metadata.json.documentFormatFiles[] but are not materialized in the record folder. For a small share of historical and idiosyncratic filings the certificate was submitted as PDF or as a TXT body rather than HTML; in those cases the .htm is replaced or supplemented by the alternate format and the dataset carries whichever primary documents the original submission used, still excluding graphics.

The metadata.json envelope

The metadata file is a flat object built from the EDGAR submission header. Its meaningful fields are:

  • formType40-17F2 for an original certificate, 40-17F2/A for an amendment.
  • accessionNo — dashed accession identifier.
  • effectivenessDate — SEC effectiveness date (YYYY-MM-DD).
  • filedAt — ISO 8601 timestamp of EDGAR receipt, with timezone offset.
  • description — boilerplate human-readable form description.
  • linkToFilingDetails — URL of the primary 40-17F2 document on EDGAR.
  • linkToTxt — URL of the complete-submission SGML .txt wrapper.
  • linkToHtml — URL of the EDGAR filing index page (*-index.htm).
  • linkToXbrl — empty string; Form 40-17F2 carries no XBRL payload.
  • documentFormatFiles[] — one object per attachment in the original submission, each with sequence (integer, or a single space for the wrapper .txt), size (bytes, as a string), documentUrl, filer-supplied description, and type (typical values: 40-17F2, GRAPHIC, or blank for the complete-submission text). This array is the authoritative inventory of every original-submission document, whether or not the file is materialized in the ZIP.
  • entities[] — typically two objects: one with role (Filed by) and one with role (Subject). For 40-17F2 these are almost always the same investment company; the form does not split filer-agent and subject across distinct CIKs. Each entity carries cik, companyName (with role suffix), type (the form type), irsNo (frequently 000000000), and, when the EDGAR header supplies them, stateOfIncorporation (two-letter US code) and fiscalYearEnd (MMDD). The (Subject) entity additionally carries act (typically 40, indicating Investment Company Act registration), fileNo (the Investment Company Act file number such as 811-XXXXX for registered investment companies or 814-XXXXX for business development companies), and filmNo (the EDGAR film number assigned at filing).
  • seriesAndClassesContractsInformation[] — empty; series and class structures are not reported on 40-17F2 even when the filer is a series trust.
  • dataFiles[] — empty; the form has no data-file attachments.
  • id — opaque dataset-publisher identifier.

Anatomy of the 40-17F2 document body

The primary .htm file begins with the SGML <DOCUMENT> header that EDGAR wraps around every primary submission document, followed by the inline <HTML> payload that renders the form:

1 <DOCUMENT>
2 <TYPE>40-17F2
3 <SEQUENCE>1
4 <FILENAME>d936919d4017f2.htm
5 <DESCRIPTION>WEST BAY BDC LLC
6 <TEXT>
7 <HTML>... full HTML rendering of Form N-17f-2 ...</HTML>
8 </TEXT>
9 </DOCUMENT>

The <DESCRIPTION> is typically the investment company name. Inside <HTML>, the body reproduces the standard paper-form layout of Form N-17f-2 in the following order.

Form cover page

The leading block is the SEC form header — [UNITED STATES SECURITIES AND EXCHANGE COMMISSION](https://www.sec.gov/) / Washington, D.C. 20549 / FORM N-17f-2 / Certificate of Accounting of Securities and Similar Investments in the Custody of Management Investment Companies / Pursuant to Rule 17f-2 [[17 CFR 270.17f-2](https://www.ecfr.gov/current/title-17/chapter-II/part-270/section-270.17f-2)] — followed by the structured cover-sheet table whose four numbered items collect the registrant identification:

  • Item 1 — Investment Company Act File Number (e.g. 811-23751, 814-01758) and Date examination completed (a narrative date such as November 19, 2025).
  • Item 2 — State identification Number, rendered as a 50-state checkbox grid plus an Other (specify) cell, with a single cell marked.
  • Item 3 — Exact name of the investment company as specified in its registration statement.
  • Item 4 — Address of the principal executive office.

The cover page is the only section with fielded structure; everything that follows is narrative legal and audit text. When a filing bundles multiple examination cycles, Item 1's examination date generally reflects only the most recent of them — the other dates live inside the body.

Report of Independent Accountants

The substantive opinion section. It is addressed to the investment company's audit committee, board of directors, or shareholders; identifies the audit firm (PricewaterhouseCoopers LLP, KPMG LLP, Deloitte & Touche LLP, EY, BDO, Tait Weller Baker LLP, Cohen & Company, and similar names dominate the population); and states that the firm examined management's assertion of compliance with paragraphs (b) and (c) of Rule 17f-2 as of a specified examination date. The body describes the procedures performed: physical inspection or confirmation of securities held by the company's custodian, transfer agent, sub-custodian, or own vault; reconciliation of those holdings to the company's books and records; agreement of a sample of security purchases and sales transacted since the prior examination to supporting documentation; and inquiry into related controls. The section closes with the audit opinion (typically that management's assertion is fairly stated in all material respects in accordance with the criteria established in Rule 17f-2(b) and (c)), the firm's manuscript or /s/-style signature, the city and state of the issuing office, and the report date. Auditor letterhead frequently appears as an <IMG> tag at the top of this section; the referenced graphic file is not materialized in the dataset.

Management Statement Regarding Compliance

The companion assertion, signed by an officer of the investment company — most often the Principal Accounting Officer, Treasurer, Chief Financial Officer, or equivalent. The statement affirms that the company complied with paragraphs (b) and (c) of Rule 17f-2 over the examination period, identifies the examination date, and closes with a signature line, the signer's printed name, title, and date. This is the assertion on which the accountant's report opines.

Repeated examination cycles

Because Rule 17f-2 requires at least three examinations per fiscal year — two on a surprise basis, one at fiscal year-end — and because filers commonly bundle several examinations into a single 40-17F2 submission rather than filing one certificate per cycle, the Report of Independent Accountants and Management Statement Regarding Compliance sections are typically repeated end-to-end for each examination date covered by the filing. Successive accountant-report and management-statement pairs are separated in the HTML by <HR> page-break dividers. The number of pairs per record is variable: a single filing may carry one, two, three, or more examination cycles, following the filer's own calendar of surprise and scheduled examinations.

Amendments

A Form 40-17F2/A record has the same structural anatomy as a 40-17F2. The amendment relationship is signaled only by the form type in metadata.json.formType and in the SGML <TYPE> header; the form carries no standardized "explanation of amendment" item. Filers commonly use amendments to substitute a corrected accountant's report, restate examination dates, replace a signed page, or correct a typographical error on the cover sheet.

What the dataset record includes

For each accession, the record materializes:

  • The metadata.json envelope with the full EDGAR header decomposition described above.
  • The primary 40-17F2 form document — HTML for the vast majority of modern filings, TXT or PDF for older or idiosyncratic filings — carrying the cover page, each Report of Independent Accountants, and each Management Statement Regarding Compliance.

All non-graphic attachments listed by the EDGAR submission as part of the primary form package are materialized.

What is excluded or structurally separate

  • Image attachmentsGRAPHIC-type documents (auditor letterhead JPEGs, signature images) are listed in documentFormatFiles[] but not stored in the record folder. Where the HTML body references them via <IMG> tags, the references resolve to absent local assets; surrounding text is intact.
  • The complete-submission .txt SGML wrapper — not stored on disk; only its URL is preserved in linkToTxt.
  • The EDGAR filing index page (*-index.htm) — not stored; URL preserved in linkToHtml.
  • Series and class identifiers — the C-/S-codes used for fund-series reporting are not collected on 40-17F2, and seriesAndClassesContractsInformation[] is empty accordingly.

Evolution of required content from 1997 to today

The substantive requirements of Form 40-17F2 have been remarkably stable across the period covered by the dataset (from July 1997 onward). Rule 17f-2 itself — three examinations per fiscal year, two on a surprise basis, certificate filed by an independent public accountant — has not been redesigned in that window. The form has consistently requested the same four cover-page items (file number and examination date; state; exact registrant name; principal office address), and the operative content has consistently been the accountant's examination report paired with the management compliance assertion.

What has shifted is auditing-standard convention rather than form requirement:

  • Earlier filings render the accountant's report as a single combined opinion on management's assertion, with procedure language that predates the AICPA's modern attestation framework. More recent filings explicitly cite the AICPA attestation standards (the AT-C 105/205 regime), structure the report into Management's Responsibility, Practitioner's Responsibility, and Opinion paragraphs, and pair it with a separately signed Management Statement Regarding Compliance — a layout that is now nearly universal.
  • The granularity of described procedures has expanded. Modern reports more frequently enumerate confirmation with sub-custodians, reconciliation to the general ledger, and sample-based agreement of intervening purchases and sales, where older reports gave a more compact narrative.
  • Bundling behavior has converged: filers increasingly submit one 40-17F2 carrying multiple examination cycles back-to-back rather than filing once per examination.

These shifts are stylistic and reflect evolving auditor practice; they do not change the structural anatomy of the record.

Evolution of file format from 1997 to today

The dataset spans the EDGAR text era through the modern HTML era for this form type:

  • 1997 through the early 2000s — Filings were commonly submitted as plain ASCII/SGML text, with the certificate body laid out as monospaced text inside the SGML <TEXT> element. Cover-page item grids were drawn with whitespace and ASCII characters; signatures appeared as /s/ plus typed names.
  • Early-to-mid 2000s onward — HTML adoption became standard. The certificate body is wrapped in <HTML> inside the SGML <DOCUMENT> element, the cover-page grid is rendered as an HTML <table>, and auditor letterhead is embedded as <IMG> references to GRAPHIC attachments.
  • PDF filings — A minority of filings, both historical and contemporary, attach the certificate as a PDF rather than HTML, particularly when the auditor produced the certificate as a signed PDF and the filer chose to submit it as-is.

Interpretation and extraction notes

  • One filing, many examinations. Treating each record as a single observation undercounts examination events. To obtain examination-level observations, the accountant-report and management-statement pairs inside one document must be parsed as repeated blocks. The Date examination completed in cover-page Item 1 generally reflects only the most recent examination in the bundle; earlier examination dates are recoverable only from the body text.
  • Filer and subject identity. entities[] carries both (Filed by) and (Subject) rows for the same investment company, so joining on either role yields the same CIK. There is no separate filer-agent identifier exposed on this form.
  • File-number prefix as classifier. The Investment Company Act file number on the cover page and in entities[].fileNo distinguishes registered investment companies (811-) from business development companies (814-) and other Investment Company Act registrants. This is the most reliable structural classifier of the filer population.
  • Image-dependent signatures. Some auditor signatures and letterheads are conveyed only through embedded JPEGs. Because graphics are excluded from the dataset, downstream rendering of the HTML will show missing-image placeholders; the textual /s/<Firm> line in the body remains the authoritative machine-readable signature.
  • Amendments. A 40-17F2/A is structurally indistinguishable from a 40-17F2 and carries no explanation-of-amendment field. To link amendments to the originals they supersede, downstream reasoning must rely on registrant CIK, examination dates carried inside the document body, and filing chronology rather than on a structural pointer in the metadata.
  • No structured examination fields. Beyond the cover-page items, the certificate is narrative legal and audit text. Examination dates, audit-firm names, signing officers, procedural details, and surprise-versus-scheduled designations live inside the Report of Independent Accountants and Management Statement Regarding Compliance blocks and require text extraction rather than direct field lookup.

Who Files or Publishes This Dataset, and When

Who files the record

Form 40-17F2 is filed by a registered management investment company that self-custodies its portfolio securities and similar investments under Section 17(f) of the Investment Company Act of 1940 and Rule 17f-2 thereunder. The investment company is the EDGAR registrant and legal filer. The self-custody arrangement is the gating fact: funds that place their assets with a qualified bank (Section 17(f)(1)), a member of a national securities exchange (Rule 17f-1), or a registered clearing agency or securities depository (Rule 17f-4) do not file this form.

Both open-end (mutual fund) and closed-end management investment companies can file if they self-custody, though self-custody is uncommon in modern practice. Unit investment trusts, face-amount certificate companies, business development companies, and funds using foreign custodians under Rule 17f-5 or Rule 17f-7 fall outside this reporting path and use other custody regimes.

The independent public accountant is not the filer. The accountant is engaged by the investment company to perform the Rule 17f-2 examination and signs the certificate of examination that constitutes the substantive content of the filing. The accountant must be independent within the meaning of the Commission's auditor-independence standards.

What triggers the filing

Form 40-17F2 is examination-driven, not calendar-periodic. Rule 17f-2(b) requires that an independent public accountant examine the self-custodied securities and similar investments at least three times during each fiscal year of the investment company, and that at least two of those three examinations be conducted on a surprise basis (without prior notice to the fund's officers or employees). The third may be scheduled.

For each examination the accountant prepares a certificate describing the nature and extent of the work performed and the findings. That certificate is transmitted to the Commission on Form 40-17F2 promptly after the examination is completed. Each examination produces its own certificate and its own filing, so an active self-custodying registrant is expected to generate at least three Form 40-17F2 submissions per fiscal year. The filing is not tied to Form N-CEN, N-CSR, or any proxy schedule.

Rule 17f-2 does not specify a numerical day-count deadline between the examination date and the filing date; the operative requirement is that the examinations occur on the required cadence and that the resulting certificate is filed with the Commission. Electronic submission on EDGAR began in the late 1990s; the earliest records in this dataset date to July 1997.

What triggers a 40-17F2/A amendment

A Form 40-17F2/A is filed to correct or supplement a previously submitted certificate. Typical triggers:

  • Correction of clerical errors in the original certificate or cover data (examination date, fund name, CIK, accountant signature block).
  • Replacement of an incomplete or incorrectly attached certificate document.
  • Submission of a reissued or modified accountant's certificate.
  • Revision of the description of the examination or of the accountant's findings where the original did not accurately reflect the work performed.

An amendment references the original Form 40-17F2 it modifies. It does not represent a new examination; it revises the record of an examination already performed.

Important distinctions

  • Filer of record vs. author of content. The investment company is the EDGAR registrant (identified by CIK). The accountant named in the certificate is the attesting party.
  • No Form 40-17F2 means external custody, not non-compliance. Most fund families use qualified bank custodians and simply do not generate these filings.
  • Distinct from Rule 17f-1. Custody with an exchange member under Rule 17f-1 has its own verification mechanics and is not reported on Form 40-17F2.
  • Surprise vs. scheduled examinations are not separately labeled on the form. The distinction is evident only from the certificate text describing the examination.
  • Per-examination, per-registrant filing. Each self-custodying registered management investment company files its own certificate after each examination. A fund complex with multiple self-custodying registrants produces multiple filings per fiscal year.
  • No materiality threshold. The obligation is triggered mechanically by each Rule 17f-2 examination for as long as self-custody is maintained; there is no size-based exemption.

How This Dataset Differs From Similar Datasets or Filings

Form 40-17F2 occupies a narrow slice of the Investment Company Act reporting regime covering how registered management investment companies safeguard portfolio securities held in self-custody. The most useful comparison set is limited to other Section 17(f) custody filings, the periodic investment company reports that describe custody arrangements, and the legacy forms that once carried related information.

Form 40-17F1 (Rule 17f-1 depository custody)

Form 40-17F1 is the direct sibling of 40-17F2 and the dataset most frequently confused with it. Both are accountant certificates filed under Section 17(f), but they cover opposite custody arrangements:

  • 40-17F1 covers securities held by a member of a national securities exchange acting as custodian under Rule 17f-1.
  • 40-17F2 covers self-custody under Rule 17f-2, where the fund or an affiliate physically maintains the securities instead of using a qualified bank or depository.

Because self-custody carries higher risk, Rule 17f-2 mandates at least three examinations per fiscal year with at least two conducted on a surprise basis. Rule 17f-1 follows a different, less intensive cadence. The two datasets are complementary, not substitutable: 40-17F1 maps depository custody (a large population), while 40-17F2 maps the much smaller self-custody universe.

Form N-17f-1 / N-17f-2 (legacy naming)

Older rule text and pre-EDGAR literature often label these filings N-17f-1 and N-17f-2. Substantively, these are the same certificates now indexed on EDGAR as 40-17F1 and 40-17F2. The 40-17F2 Files Dataset (July 1997 to present) captures the EDGAR-era form type and should not be treated as a separate series from the N-17f-2 label used in older sources, nor from the paired Form N-17f-1 label.

Form N-CEN (annual census, custodian items)

N-CEN replaced Form N-SAR in 2018 as the structured annual census for registered investment companies. Items in the C.7 block identify each custodian a fund uses, including whether custody is maintained by a bank, a foreign custodian, a depository, or the fund itself under Rule 17f-2. Overlap with 40-17F2 is limited to subject matter:

  • Form N-CEN is annual, structured, and descriptive. It identifies which funds use self-custody.
  • 40-17F2 is event-driven (one filing per examination), narrative plus certification, and evidentiary. It documents that a specific self-custody arrangement was examined on a specific date with specific findings.

Users typically use N-CEN to identify the self-custody population and 40-17F2 to study the verification activity for those funds.

Form N-SAR (legacy semi-annual report, pre-2018)

N-SAR was the semi-annual investment company report used through mid-2018 and contained custody-related fields broadly analogous to N-CEN's C.7 items. For custody analysis before 2018, N-SAR is the periodic counterpart to 40-17F2; after 2018, N-CEN takes that role. N-SAR carries structured field-level custody relationships only and contains no accountant certification or examination-level detail.

Form N-PORT (monthly portfolio holdings)

N-PORT is often grouped with custody filings because both involve portfolio securities, but the overlap is superficial. Form N-PORT reports what a fund holds: composition, valuation, liquidity, and risk metrics on a monthly basis. It says nothing about where or how those securities are held. 40-17F2 says nothing about holdings composition or value, only that securities claimed to be in self-custody were examined and verified. Reconciling reported holdings against physical self-custody requires both datasets.

Other Investment Company Act filings (N-CSR, N-18F-1, N-1A, N-2)

Certified shareholder reports (N-CSR), relief notices (Form N-18F-1), and registration statements (Form N-1A, Form N-2, Form N-3) may mention custody arrangements in narrative sections, but none is a substitute for 40-17F2. They describe custody as context within broader disclosure; 40-17F2 is the standalone accountant attestation. For the evidentiary question of whether self-custody holdings were independently verified, 40-17F2 is primary. See also Form N-CSR for the certified shareholder report form specification.

Key differences at a glance

Dimension40-17F240-17F1N-CENN-PORT
Who filesFunds using self-custody under Rule 17f-2Funds using exchange-member custody under Rule 17f-1All registered investment companiesRegistered funds (ex-MMF)
What is examinedSelf-held portfolio securitiesDepository-held portfolio securitiesFund structure and service providersPortfolio holdings and risk
Custody mechanismFund or affiliate holds securities physicallyNational securities exchange member custodianAny custody type (descriptive)Not addressed
CadenceAt least 3 exams per fiscal year, at least 2 surpriseDifferent examination scheduleAnnualMonthly
AuthorIndependent public accountantIndependent public accountantFundFund
Output typeEvidentiary attestationEvidentiary attestationStructured censusStructured holdings data

Boundary summary

Three structural features make 40-17F2 distinct:

  1. Filer population. Only registered management investment companies maintaining portfolio securities in self-custody under Rule 17f-2 file. This is a small subset of the 1940-Act filer universe, far smaller than the populations behind 40-17F1, N-CEN, or N-PORT.
  2. Examination cadence. Filings follow a mandated schedule of at least three examinations per fiscal year with at least two on a surprise basis. No periodic report carries this cadence, and 40-17F1 operates on a different schedule.
  3. Content type. The payload is an independent public accountant's certificate describing the examination and its findings — an auditor-style attestation, not a fund-authored disclosure or a structured data submission.

The dataset is therefore a targeted evidentiary record of self-custody verification. It complements the periodic descriptive filings (N-CEN, N-PORT, N-SAR) that situate custody arrangements and runs structurally parallel to 40-17F1, which covers the far more common depository-custody case.

Who Uses This Dataset

Form 40-17F2 certificates serve a narrow set of specialists working on Rule 17f-2 self-custody compliance at registered management investment companies. Each role draws on specific fields: filer CIK, independent accountant identity, examination dates, scope and findings paragraphs, and amendment status (40-17F2 vs. 40-17F2/A).

Investment company compliance teams

In-house compliance officers at self-custodying funds pull the filing history by CIK to confirm that three examinations occurred each fiscal year, that at least two were on a surprise basis, and that prior errors were corrected via 40-17F2/A. Examination dates and findings paragraphs feed annual Rule 38a-1 reviews, CCO board reports, and internal audit workpapers.

Fund counsel

Outside counsel drafting a 40-17F2 benchmark scope language, findings wording, and amendment narratives against peer filings for similar fund types. They mine the archive for current market phrasing on surprise examinations, reconciliation procedures, and qualifications, and advise boards on remediation when findings paragraphs disclose exceptions.

Independent public accountants

Audit partners performing Rule 17f-2 engagements review historical certificates filed by their firm and peers to calibrate scope language, procedure descriptions (physical inspection, subsidiary-ledger reconciliation, issuer confirmation), and exception reporting. Prior examination dates per CIK inform planning memos so surprise-visit timing does not become predictable.

Custody operations specialists

Operations leads at self-custodying funds and their advisers compare their own certificates to peers on procedural detail: vault access, asset segregation, securities-in-transit treatment, and sub-custodian handling. The findings and scope paragraphs drive internal control documentation and preparation for the next surprise examination.

SEC Division of Investment Management and Examinations staff

IM and exam staff (from the SEC Division of Investment Management) verify that required certificates are on file for each self-custodying registrant, check examination-date spacing for consistency with the surprise requirement, and read findings for missing securities, reconciliation differences, or scope limitations. Irregular filing cadence, frequent amendments, or qualified findings feed risk-based exam targeting.

Academic researchers

Researchers in fund governance and auditing extract filer CIKs, accountant identities, examination frequencies, and findings text to study audit-market concentration in 17f-2 work, amendment rates, and correlations between fund structure and custody arrangements. Amendment status and findings language support empirical work on audit quality.

Data and research vendors

Engineering teams at regulatory-data vendors ingest accession metadata (CIK, filing date, 40-17F2 vs. 40-17F2/A) and parse certificate text for examination dates, accountant identity, and findings to populate compliance dashboards and fund-complex trackers sold to compliance, audit, and legal users.

Every user group works from the same core fields — filer CIK, accountant identity, examination dates, scope, findings, and amendment status — but applies them to distinct compliance, legal, audit, supervisory, research, or product workflows centered on self-custody attestation.

Specific Use Cases

The dataset supports a small number of concrete, operational workflows centered on Rule 17f-2 self-custody verification. Each use case below names the persona, the fields exploited, and the output produced.

Three-per-year examination cadence audit

A fund compliance officer at a self-custodying registrant pulls every 40-17F2 and 40-17F2/A for the fund's CIK from entities[].cik, then parses each Date examination completed on cover-page Item 1 and every additional examination date embedded in the repeated Report of Independent Accountants blocks. The output is a per-fiscal-year compliance calendar that flags any year short of three examinations, any stretch where fewer than two were on a surprise basis, and any gap exceeding the fund's internal threshold. The same calendar feeds the CCO's Rule 38a-1 annual report and the audit committee package.

SEC examiner targeting list for self-custody registrants

Division of Investment Management and Examinations staff join fileNo prefixes (811- vs. 814-) in metadata.json.entities[] against the N-CEN self-custody population to identify registrants that should be filing 40-17F2 but are not, or whose filing cadence is irregular. Examination dates extracted from the body, plus 40-17F2/A amendment counts per CIK, produce a risk-ranked targeting list for routine and for-cause exams. Qualified opinion language, restated examination dates, and replaced accountant reports in amendments act as escalation triggers.

Peer benchmarking of accountant scope and findings language

Outside fund counsel drafting or reviewing a client's 40-17F2 extracts the Report of Independent Accountants and Management Statement Regarding Compliance blocks for a cohort of similar registrants (same file-number prefix, similar custody footprint), normalizes procedure descriptions (physical inspection, sub-custodian confirmation, purchases-and-sales sampling), and compares them to the client's current certificate. The output is a redlined scope-and-findings template plus a memo to the board identifying deviations from market practice and any exception language that warrants remediation before the next surprise examination.

Audit-market concentration and audit-quality study dataset

An academic researcher studying PCAOB-registered attestation work on 1940-Act custody engagements parses the signature block of each Report of Independent Accountants to capture the audit firm, office city and state, and report date, joined with filer CIK, fiscalYearEnd, and stateOfIncorporation from the envelope. Amendment status (40-17F2/A), restated examination dates, and any modified opinion language become the dependent variables. The result is a panel dataset supporting papers on market share among firms such as PwC, KPMG, Deloitte, EY, BDO, Tait Weller Baker, and Cohen, and on correlations between auditor identity and amendment frequency.

Vendor compliance dashboard for fund-complex monitoring

A regulatory-data vendor ingests metadata.json for every 40-17F2 accession, parses each certificate into one row per examination cycle (one Report of Independent Accountants / Management Statement pair), and normalizes accountant name, examination date, signing officer, and any exception wording. The product is a subscription dashboard that alerts compliance, audit, and legal users in near real time to new filings, amendments, missed cadence windows, and qualified findings across tracked fund complexes, with drill-through to the original HTML on EDGAR via linkToFilingDetails.

Surprise-examination timing analytics for engagement partners

An audit partner planning the next Rule 17f-2 engagement pulls the client's and peers' prior examination dates from the repeated body blocks and computes the day-of-month, day-of-week, and inter-examination interval distributions. The output is a planning-memo appendix that helps the engagement team schedule upcoming surprise visits in a way that is statistically unpredictable to fund operations, while still satisfying the three-per-fiscal-year and two-surprise minimums required by the rule.

Dataset Access

The Form 40-17F2 Files Dataset is accessible through a public JSON index endpoint and two download routes for the full archive and individual monthly containers.

Dataset Index JSON API: https://api.sec-api.io/datasets/form-4017f2-files.json

This endpoint returns metadata describing the dataset, including the name, description, last updated timestamp, earliest sample date, total record count, total size in bytes, covered form types (40-17F2, 40-17F2/A), container format (ZIP), and included file types (TXT, JSON, HTML, PDF). The response also contains the download URL for the full archive and a list of all monthly container files, each with its size, record count, last updated timestamp, and download URL. Use this endpoint to monitor which containers changed in the most recent refresh run and decide which partitions to re-download on a day-by-day basis. No API key is required to call this endpoint.

Example response:

Example
1 {
2 "datasetId": "1f13365b-9ae0-6918-a207-34b2d096b121",
3 "datasetDownloadUrl": "https://api.sec-api.io/datasets/form-4017f2-files.zip",
4 "name": "Form 40-17F2 Files Dataset",
5 "updatedAt": "2026-04-24T02:56:23.876Z",
6 "earliestSampleDate": "1997-07-01",
7 "totalRecords": 24706,
8 "totalSize": 101341653,
9 "formTypes": ["40-17F2", "40-17F2/A"],
10 "containerFormat": "ZIP",
11 "fileTypes": ["TXT", "JSON", "HTML", "PDF"],
12 "containers": [
13 {
14 "downloadUrl": "https://api.sec-api.io/datasets/form-4017f2-files/2026/2026-03.zip",
15 "key": "2026/2026-03.zip",
16 "size": 13818783,
17 "records": 154,
18 "updatedAt": "2026-04-24T02:56:23.876Z"
19 }
20 ]
21 }

Download Entire Dataset: https://api.sec-api.io/datasets/form-4017f2-files.zip?token=YOUR_API_KEY

Downloads the complete dataset as a single ZIP archive containing every monthly container from July 1997 to the most recent refresh. This endpoint requires an API key.

Download Single Container: https://api.sec-api.io/datasets/form-4017f2-files/2026/2026-03.zip?token=YOUR_API_KEY

Downloads one monthly container, organized as YYYY/YYYY-MM.zip inside year folders. Use this route to pull only the partitions reported as updated by the index endpoint rather than retrieving the full archive. This endpoint requires an API key.

Frequently Asked Questions

What form does this dataset cover?

The dataset covers Form 40-17F2 and its amendment, Form 40-17F2/A — the EDGAR form-type codes for the certificate administratively titled Form N-17f-2, filed under Rule 17f-2 of the Investment Company Act of 1940. The operative content is an independent public accountant's examination report on management's assertion of compliance with paragraphs (b) and (c) of Rule 17f-2, paired with a management compliance statement.

What does one record in this dataset represent?

One record is a single 40-17F2 or 40-17F2/A filing event — one accession-numbered folder carrying a metadata.json envelope decomposed from the EDGAR submission header and the primary certificate document. The unit of observation is the filing, not the examination event; a single filing routinely bundles multiple examination cycles, so the number of certified examinations in the dataset exceeds the number of records.

Who is required to file Form 40-17F2?

Form 40-17F2 is filed by registered management investment companies that self-custody their portfolio securities under Section 17(f) of the Investment Company Act and Rule 17f-2. Funds that place their assets with a qualified bank, a national securities exchange member under Rule 17f-1, or a registered clearing agency or depository under Rule 17f-4 do not file this form. The independent public accountant performing the examination is not the filer; the investment company is the EDGAR registrant.

How often must a self-custodying fund file Form 40-17F2?

Rule 17f-2 requires at least three independent-accountant examinations per fiscal year, at least two of them conducted on a surprise basis. Each examination produces its own certificate that is transmitted on Form 40-17F2 promptly after completion, so an active self-custodying registrant is expected to generate at least three filings per fiscal year.

What time period does the dataset cover?

The dataset covers Form 40-17F2 and 40-17F2/A filings from July 1997 — the earliest electronic submissions on EDGAR — through the most recent refresh.

What file formats are included, and how is the dataset distributed?

The dataset is distributed as monthly ZIP containers organized as YYYY/YYYY-MM.zip. Inside each container, records include metadata.json envelopes plus primary form documents in HTML for the vast majority of modern filings, and TXT or PDF for some historical or idiosyncratic filings. GRAPHIC-type attachments (auditor letterhead JPEGs, signature images) are enumerated in documentFormatFiles[] but are not materialized on disk.

How does this dataset differ from the Form 40-17F1 dataset?

Both 40-17F1 and 40-17F2 are independent-accountant certificates filed under Section 17(f), but they cover opposite custody arrangements. Form 40-17F1 covers securities held by a member of a national securities exchange acting as custodian under Rule 17f-1, while Form 40-17F2 covers self-custody under Rule 17f-2, where the fund or an affiliate physically maintains the securities. Because self-custody carries higher risk, Rule 17f-2 mandates at least three examinations per fiscal year with at least two on a surprise basis, a more intensive cadence than Rule 17f-1.