---
id: object/codeunit/1201
type: object
title: Codeunit 1201 "Process Data Exch."
summary: Codeunit 1201 "Process Data Exch." in Base Application (System.IO). 7 public procedures, 12 events. Present since at least BC23, still in BC30, changed in BC24-25.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "25"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 74feb1ec36f2e1a7e34d46fdb981727f4a5647a8021d70ed042eb6b0ff4d7b55
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/System/DataExchange/ProcessDataExch.Codeunit.al
    title: src/Layers/W1/BaseApp/System/DataExchange/ProcessDataExch.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 1201
name: Process Data Exch.
namespace: System.IO
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "25"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 28
  events: 12
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 1
  calls: 2
  called_by: 7
  implements: 0
---

# Codeunit 1201 "Process Data Exch."

> Codeunit 1201 "Process Data Exch." in Base Application (System.IO). 7 public procedures, 12 events. Present since at least BC23, still in BC30, changed in BC24-25.

Base Application · System.IO · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/System/DataExchange/ProcessDataExch.Codeunit.al) · facts from BC29

## Events published

- `OnBeforeFormatFieldValue(var TransformedValue: Text; DataExchField: Record "Data Exch. Field"; var DataExchFieldMapping: Record "Data Exch. Field Mapping"; FieldRef: FieldRef; DataExchColumnDef: Record "Data Exch. Column Def"; var IsHandled: Boolean)` (integration)
- `OnBeforeDataExchFieldMappingSetFilters(var DataExchFieldMapping: Record "Data Exch. Field Mapping"; var DataExch: Record "Data Exch.")` (integration)
- `OnBeforeProcessAllLinesColumnMapping(DataExch: Record "Data Exch."; DataExchLineDef: Record "Data Exch. Line Def"; RecRef: RecordRef; var IsHandled: Boolean)` (integration)
- `OnProcessColumnMappingOnBeforeCreateBankAccReconciliationLine(var RecRefTemplate: RecordRef; var DataExchangeField: Record "Data Exch. Field"; var DataExch: Record "Data Exch."; CurrLineNo: Integer)` (integration)
- `OnAfterProcessColumnMapping(var DataExch: Record "Data Exch.")` (integration)
- `OnProcessColumnMappingOnBeforeRecRefInsert(RecRef: RecordRef; DataExch: Record "Data Exch."; var IsHandled: Boolean)` (integration)
- `OnSetFieldOnBeforeGetTransformedValue(var DataExchField: Record "Data Exch. Field"; var DataExchFieldMapping: Record "Data Exch. Field Mapping"; FieldRef: FieldRef; DataExchColumnDef: Record "Data Exch. Column Def")` (integration)
- `OnSetFieldOnBeforeFieldRefValidate(TransformedValue: Text; var DataExchField: Record "Data Exch. Field"; DataExchFieldMapping: Record "Data Exch. Field Mapping"; FieldRef: FieldRef; DataExchColumnDef: Record "Data Exch. Column Def"; var IsHandled: Boolean)` (integration)
- `OnProcessColumnMappingOnBeforeDataExchFieldMappingFindSet(var RecordRef: RecordRef; LastKeyFieldId: Integer; CurrLineNo: Integer; LineNoOffset: Integer)` (integration)
  - subscribers: [Codeunit 8033 "Generic Connector Processing"](../codeunit/8033.md) SetNextEntryNoForUsageDataGenericImport
- `OnProcessColumnMappingOnBeforeDataExchFieldFindSet(DataExch: Record "Data Exch."; var DataExchFieldMapping: Record "Data Exch. Field Mapping"; var DataExchField: Record "Data Exch. Field"; var RecordRef: RecordRef; var TempFieldIdsToNegateInteger: Record Integer temporary; var CurrLineNo: Integer; var IsHandled: Boolean)` (integration)
- `OnSetFieldOnBeforeDataExchColumnDefGet(var DataExchField: Record "Data Exch. Field"; var DataExchColumnDef: Record "Data Exch. Column Def"; var IsHandled: Boolean)` (integration)
- `OnProcessColumnMappingOnAfterDataExchFieldMappingSetFilters(var DataExchFieldMapping: Record "Data Exch. Field Mapping"; var IsHandled: Boolean)` (integration)

## Procedures

- `ProcessColumnMapping(DataExch: Record "Data Exch."; DataExchLineDef: Record "Data Exch. Line Def"; RecRefTemplate: RecordRef)`
- `ProcessAllLinesColumnMapping(DataExch: Record "Data Exch."; RecRef: RecordRef)`
- `SetField(RecRef: RecordRef; DataExchFieldMapping: Record "Data Exch. Field Mapping"; var DataExchField: Record "Data Exch. Field"; var TempFieldIdsToNegate: Record "Integer" temporary)`
- `SetDateDecimalField(ValueText: Text; var DataExchField: Record "Data Exch. Field"; var FieldRef: FieldRef; var DataExchColumnDef: Record "Data Exch. Column Def")`
- `SetFieldValue(RecRef: RecordRef; FieldID: Integer; Value: Variant)`
- `GetType(DataExchDefCode: Code[20]): Text`
- `NegateAmounts(RecRef: RecordRef; var TempFieldIdsToNegate: Record "Integer" temporary)`

Plus 9 local procedures.

## Triggers

OnRun

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 4100 "Temp Blob"](../codeunit/4100.md) (2 calls: `SetField → CreateOutStream`, `SetField → ToRecordRef`)
- [Codeunit 10 "Type Helper"](../codeunit/10.md) (1 call: `SetDateDecimalField → Evaluate`)

## Called by

- [Codeunit 1262 "Pre & Post Process XML Import"](../codeunit/1262.md) (2 calls: `SetValueFromDataExchField → NegateAmounts`, `SetValueFromDataExchField → SetField`)
- [Codeunit 1280 "Map Currency Exchange Rate"](../codeunit/1280.md) (2 calls: `AssignValue → NegateAmounts`, `AssignValue → SetField`)
- [Codeunit 1202 "Import Payroll Transaction"](../codeunit/1202.md) (1 call: `MapDataToGenJournalLine → ProcessAllLinesColumnMapping`)
- [Codeunit 1247 "Process Gen. Journal Lines"](../codeunit/1247.md) (1 call: `OnRun → ProcessAllLinesColumnMapping`)
- [Codeunit 1248 "Process Bank Acc. Rec Lines"](../codeunit/1248.md) (1 call: `OnRun → ProcessAllLinesColumnMapping`)
- [Codeunit 1260 "Imp. SEPA CAMT Gen. Jnl."](../codeunit/1260.md) (1 call: `OnRun → ProcessAllLinesColumnMapping`)
- [Codeunit 1261 "Imp. SEPA CAMT Bank Rec. Lines"](../codeunit/1261.md) (1 call: `OnRun → ProcessAllLinesColumnMapping`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24-25

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "Process Data Exch.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
