Main Account Code

Code for the Treasury main account associated with the funding source for the award. It identifies the primary Treasury Account Symbol component used to record the appropriation or fund account behind the transaction.

Family: Other Transaction IDV
Category: Contract Data
Data Type: boolean_or_code_flag
Semantic Type: flag
Mapping: flattened_fpds_xml_field
AI Confidence: high

Variable Overview

FPDS Query Variable
content__OtherTransactionIDV__contractDetail__contractData__listOfTreasuryAccounts__treasuryAccount__treasuryAccountSymbol__mainAccountCode
Title
Main Account Code
FPDS Path
OtherTransactionIDV/contractDetail/contractData/listOfTreasuryAccounts/treasuryAccount/treasuryAccountSymbol/mainAccountCode
Description
Code for the Treasury main account associated with the funding source for the award. It identifies the primary Treasury Account Symbol component used to record the appropriation or fund account behind the transaction.
Business Meaning
This field helps analysts trace awards to the federal account that finances them, which is important for budget execution, appropriations analysis, and fund-level compliance review. It supports grouping obligations by source of funds and linking procurement activity to treasury accounting structure.
Example Value
2040
Observed Non-Null Count
2,309

FPDS Compare

FPDS Query Variable
content__OtherTransactionIDV__contractDetail__contractData__listOfTreasuryAccounts__treasuryAccount__treasuryAccountSymbol__mainAccountCode
FPDS XML Path
OtherTransactionIDV/contractDetail/contractData/listOfTreasuryAccounts/treasuryAccount/treasuryAccountSymbol/mainAccountCode
Mapping Type
flattened_fpds_xml_field
Comparison Summary
FPDS Query flattens the original nested FPDS XML path 'OtherTransactionIDV/contractDetail/contractData/listOfTreasuryAccounts/treasuryAccount/treasuryAccountSymbol/mainAccountCode' into the SQL-ready variable 'content__OtherTransactionIDV__contractDetail__contractData__listOfTreasuryAccounts__treasuryAccount__treasuryAccountSymbol__mainAccountCode'.

Use Cases

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

Common Usage

  • Group obligations by Treasury funding account
  • Reconcile procurement awards to appropriations or fund lines
  • Filter awards by specific main account code

Common Mistakes

  • Interpreting the code as a narrative description instead of an identifier
  • Using the field without checking for multiple Treasury accounts per award

Query Guidance

Use equality filters or GROUP BY on the code value when analyzing funding sources. When joining to reference tables, match on the code and, if available, pair it with the account description or full Treasury Account Symbol to avoid ambiguous results.

SQL Examples

Preview values

SELECT
    content__OtherTransactionIDV__contractDetail__contractData__listOfTreasuryAccounts__treasuryAccount__treasuryAccountSymbol__mainAccountCode AS main_account_code
FROM fpds.data
WHERE content__OtherTransactionIDV__contractDetail__contractData__listOfTreasuryAccounts__treasuryAccount__treasuryAccountSymbol__mainAccountCode IS NOT NULL
LIMIT 25

Flag distribution

SELECT
    content__OtherTransactionIDV__contractDetail__contractData__listOfTreasuryAccounts__treasuryAccount__treasuryAccountSymbol__mainAccountCode AS flag_value,
    count() AS record_count
FROM fpds.data
WHERE content__OtherTransactionIDV__contractDetail__contractData__listOfTreasuryAccounts__treasuryAccount__treasuryAccountSymbol__mainAccountCode IS NOT NULL
GROUP BY flag_value
ORDER BY record_count DESC

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