Contracting Office Agency Id

Code identifying the contracting office's parent agency for the IDV record. It is an FPDS reference identifier, not a descriptive name, and typically appears as a numeric or abbreviated agency code.

Family: IDV
Category: Purchaser Information
Data Type: identifier_or_code
Semantic Type: identifier
Mapping: flattened_fpds_xml_field
AI Confidence: high

Variable Overview

FPDS Query Variable
content__IDV__purchaserInformation__contractingOfficeAgencyID
Title
Contracting Office Agency Id
FPDS Path
IDV/purchaserInformation/contractingOfficeAgencyID
Description
Code identifying the contracting office's parent agency for the IDV record. It is an FPDS reference identifier, not a descriptive name, and typically appears as a numeric or abbreviated agency code.
Business Meaning
This field lets analysts attribute IDVs to the responsible agency for portfolio reporting, spend concentration, and organizational accountability. It is useful for grouping awards by agency hierarchy, comparing obligation activity across departments, and joining to agency reference tables for rollups and validation.
Example Value
4730
Observed Non-Null Count
4,532,006

FPDS Compare

FPDS Query Variable
content__IDV__purchaserInformation__contractingOfficeAgencyID
FPDS XML Path
IDV/purchaserInformation/contractingOfficeAgencyID
Mapping Type
flattened_fpds_xml_field
Comparison Summary
FPDS Query flattens the original nested FPDS XML path 'IDV/purchaserInformation/contractingOfficeAgencyID' into the SQL-ready variable 'content__IDV__purchaserInformation__contractingOfficeAgencyID'.

Use Cases

  • Dictionary lookup and field explanation
  • SQL filtering and grouping
  • Analytical reporting and reusable query building

Common Usage

  • Aggregate IDVs by parent agency
  • Join to agency reference or lookup tables
  • Filter awards for a specific agency code

Common Mistakes

  • Assuming the value is a human-readable agency name
  • Joining without normalizing code format or checking for leading zeros

Query Guidance

Use this field as a join key or grouping dimension in SQL, usually with exact-match comparisons after normalizing data type and padding rules if needed. If the analysis needs agency names, join to a lookup table rather than deriving them from the code itself.

SQL Examples

Preview values

SELECT
    content__IDV__purchaserInformation__contractingOfficeAgencyID AS contracting_office_agency_id
FROM fpds.data
WHERE content__IDV__purchaserInformation__contractingOfficeAgencyID IS NOT NULL
LIMIT 25

Top values

SELECT
    content__IDV__purchaserInformation__contractingOfficeAgencyID AS value,
    count() AS record_count
FROM fpds.data
WHERE content__IDV__purchaserInformation__contractingOfficeAgencyID IS NOT NULL
GROUP BY value
ORDER BY record_count DESC
LIMIT 25

Each dictionary item includes SQL-ready examples generated alongside the variable metadata, allowing immediate use in FPDS Query for filtering, aggregation, and analysis.