web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Header values are not showing in payment export file

(10) ShareShare
ReportReport
Posted on by 28
Hi,
 
I have one requirement where header as well as the details should show in the payment export file. I have a payment export format what i want while exporting from payment journal.
 
 
I have set the data exchange definition and the required setup also but after that also i am not getting the header details in export file. Data Exchange definition looks like below.
 
 
 
Field mapping for both Header & details looks like below:
 
Header:
 
 
 
Details:
 
 
 
 
Please give the suggestion, how can i show the header part in text file.
I have the same question (0)
  • Suggested answer
    DAnny3211 Profile Picture
    11,417 Super User 2026 Season 1 on at
    hi
     

    Thanks for sharing the document. Based on your setup and the issue described, here’s a clear summary and guidance to help you include both the header and missing fields in your payment export file from Business Central:

    Objective
    You want to export a CSV payment file from the Payment Journal using a custom HSBC BACS format, including:

    • A header row
    • Fields that are currently missing from table 1226

    Identified Issues

    • The header row is not exported by default
    • Missing fields include:
      • Batch Name
      • 1RG Bank Sort Code
      • 1RG Bank Account No.
      • (Optional) SWIFT Code for future international payments

    Suggested Solution

    1. Header Row

      • In the Data Exchange Definition, make sure:
        • The first row is defined as a header
        • The “Include Header” option is set to “Yes” in the column definitions
    2. Missing Fields If the required fields are not available in table 1226, you have two options:

      Option A: Extend Table 1226

      • Create a table extension for Gen. Journal Line or the table used for export
      • Add the required fields and populate them via code or during journal entry

      Option B: Use Related Tables

      • If the data exists in related tables (e.g., Bank Account, Vendor Bank Account), retrieve them using a custom codeunit or mapping logic in the Data Exchange Definition
    3. Custom Codeunit (Optional)

      • If standard mapping doesn’t allow access to the required fields, create a codeunit to:
        • Extend the export logic
        • Populate the missing fields
        • Format the CSV output as needed

    Expected Output Format

    Transaction Type,Remitter Batch Reference,Customer Reference,DebtorAgent ClearingMmbrId,Debit Account Number,Beneficiary Name,CreditorAgent ClearingMmbrId,Beneficiary Account Number,Transaction Amount,Payment Currency,Requested Processing Date
    NURG,BATCH001,INV123,123456,12345678,Vendor A,654321,87654321,1000.00,GBP,25/07/2025
    

    Let me know if you’d like help drafting the AL code for the table extension or the custom export logic.

    Best regards,
    Daniele

  • Suggested answer
    Sohail Ahmed Profile Picture
    11,169 Super User 2026 Season 1 on at
  • Suggested answer
    Jeffrey Bulanadi Profile Picture
    9,112 Super User 2026 Season 1 on at

    Hi,

    Getting the header line to appear in a payment export file can be surprisingly tricky, even when the Data Exchange Definition and field mappings look correct. The issue usually stems from how the Line Definitions are configured and whether the Header line type is actually triggered during export.

    Here’s how to troubleshoot and resolve it:

    • In your Data Exchange Definition, confirm that the Line Type for the header is set to Header and not Detail. This ensures the system treats it as a separate line block.
    • Make sure the Column Definitions for the header line are mapped correctly and not left blank or optional. Even one missing required field can cause the header line to be skipped.
    • In the Field Mapping, verify that the header line is linked to a valid source table — typically Gen. Journal Batch, Bank Account, or a custom buffer. If the mapping points to a record that isn’t present during export, the header won’t generate.
    • Check the Export Format Setup on the bank card. Some formats expect a header line only if certain conditions are met (e.g., batch totals, bank codes). If those fields are missing, the export may silently skip the header.
    • If you're using a custom codeunit for export logic, ensure it includes a call to InsertHeaderLine() or equivalent logic to trigger the header block.
    • Finally, run a Test Export with minimal data and inspect the output file. If the header still doesn’t appear, try adding a static column (e.g., "File Created By" = 'BC Export') to force the header line to render.
       

    Helpful References
    How to modify an existing Dynamics 365 BC Data Exchange Definition
    Field mapping for exporting bank payment files – BC
    How-To Troubleshoot a Positive Pay Export Error in BC



    If you find this helpful, feel free to mark this as the suggested or verified answer.

    Cheers
    Jeffrey
  • Suggested answer
    YUN ZHU Profile Picture
    99,084 Super User 2026 Season 1 on at
    This is a bit weird, you can look at the standard setting.
    Then delete this and recreate it.
     
    Thanks.
    ZHU
  • NX-23021251-0 Profile Picture
    4 Microsoft Employee on at
    I am having the same problem with getting the export to get a header. What ended up being the problem and solution?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,005 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,148 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 557 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans