7 Steps to Import Bank Statement in XLS File Dynamics NAV / 365 BC
It was an easy solution by Dynamics NAV to import bank statement on XLS file until I understood the configuration needed to implement this solution.
The default way in Dynamics NAV is to import Bank Statement in XML format, but it’s just needed the following steps to make this happen in XLS file format:
- Data Exchange Definitions
- Data Exchange Definitions – Line Definitions Tab
- Data Exchange Definitions – Column Definitions Tab
- Field Mapping – General Tab
- Field Mapping – Field Mapping Tab
- Bank Export/Import Setup
- Bank Accounts
- Data Exchange Definitions
- Go to the Data Exchange Definitions page.
- Define multiple mappings when importing or exporting files.
- Create a new Data Exchange Definition for Bank Statement Import.
- Enter Code and Name to define the new definition.
- Setups required:
File Type= Variable Text
Type= Bank Statement Import
File Encoding = WINDOWS
Column Separator = Comma
Click “Show more fields”
Reading/Writing XMLport = 1220
Ext. Data Handling Codeunit = 1240

2. Data Exchange Definitions – Line Definitions Tab
- In the Line Definitions, keep the Line Type, Code, and Name fields as it is.
- Enter the correct value (4) for Column Count that matches the number of
columns in the CSV file that will be imported. In this case, we will define in the CSV file 4 columns (Date, Description, Debit Amount, Credit Amount)
3. Data Exchange Definitions – Column Definitions Tab
In this step, you will map the Fields of Table Bank with the corresponding columns in CSV File format.
- Column No. = Refer to the fist column in CSV File (1,2,3,4).
- Name = Pick Name for the columns in CSV File (Date, Description, Debit, Credit).
- Data Type = Select the appropriate data format for each field (Numeric Field = Decimals) otherwise will be (Text)
- Data Formatting = Data types of date and decimal, enter “en-US”.

4. Field Mapping – General Tab
We will map the created columns to the Bank Reconciliation table columns in Dynamics NAV.
- Go to Line Definition Fast Tab again, and Click on Field Mapping.
- From the toolbar, click New.
- Enter the following setups:
Table= 274
Name = Bank Account Reconciliation XLS
Mapping Codeunit = 1248

5. Field Mapping – Field Mapping Tab
- Go down to Field Mapping tab.
- Map columns to the correct table columns.
- Select Field ID Column No for every line.
- Find the corresponding column in the Bank Acct. Reconciliation Line table.
- Repeat the last steps for all columns.
- Mark “Optional” for Debit Amount & Credit Amount Columns. This option used to validate the Blank Data, so the mapping process will be skipped if the field is empty.
6. Bank Import/ Export Setup
- Go to Bank Export/Import Setup.
- Enter Code and Name.
- Direction = Import
- Processing Codeunit Id= 1270
- Data Exchange Definition Code = The name of the Data Exchange Definition.

6. Bank Account Card
Here we will assign the Bank Import Setup code in Bank Account Card.
- From Transfer Tab, Field “Bank Statment Import”
- Select your bank statement import code.

7. Bank Account Reconciliation
- Go to Bank Account Reconciliations & click New on the toolbar.
- Select the Bank Account.
- Click the Import Bank Statement button from the toolbar.
- Select the CSV of the statement.
- See your data result imported.

Enjoy the Process. 
This was originally posted here.
Comments
-
7 Steps to Import Bank Statement in XLS File Dynamics NAV / 365 BCHi Ahmed,Thanks for your detailed blog post. I setup a new Data Exchange Definition for the import of my Customers Bank Statement. They have two amount fields. The Receipt Amount has a double quotation " to indicate a credit amount. I am not quite clear on how this should be setup to map to the amount field.1Entry Date,Transaction Details,2Transaction Type,Payment Amount,Receipt Amount,Ledger Balance,Customer Reference,Bank Reference
,Balance Brought Forward,,,,"1,637,961.84",,
01/08/2023,GRIFFITHS M & S 230007897 BGCFrom: 52-21-00 18870619,Inward Payment via FP,,27.98,,230007897,
01/08/2023,SIMPSON JANET Simpson 230007896 BGCFrom: 40-47-62 31026372,Inward Payment via FP,,37.98,,Simpson 230007896,
01/08/2023,GIN & SAKE LTD 230007899 BGCFrom: 30-93-53 64891760,Inward Payment via FP,,922.48,,230007899,
01/08/2023,KLARNA BANK AB BAN RTE-36754221 BGCFrom: 60-92-42 10020995,Inward Payment via FP,,"4,368.55",,RTE-36754221,Many thanks,maria

Like
Report
*This post is locked for comments