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...
Answered

How to Export Payment using Data Exchange Definition with headers, details and footers

(6) ShareShare
ReportReport
Posted on by 90
Hello,

I have set up a data exchange definition with headers, details, and lines in a W1 Localization as seen below. I export the payment file using the Payment Journal > Bank > Export. This requires that the payment method code be configured to support the export; however, the payment method only allows the selection of a single line from the data exchange definition and not the entire data exchange definition including all the lines. This restriction to assign on a single line is seen in the second snippet.

How do I assign a multi-line data exchange definition to a payment method instead of a single line?


I have the same question (0)
  • Suggested answer
    KasparsSemjonovs Profile Picture
    4,818 Super User 2026 Season 1 on at
    You can just create in "Bank Export/Import Setup" the needed line with Direction=Export, and assign the Data Exch.Def.Code.
    And on Bank Account card, select the Payment Export Format = the line You created in the Bank Export/Import Setup.
     
  • NX-14051948-0 Profile Picture
    90 on at
    Hello and thanks for the response. Both of the configurations you described have already been set as seen below. Even with these I still get the error requesting the payment method code to be configured. Error message: "The BNS - ACH Export export format does not support the Payment Method Code ."





  • Dhiren Nagar Profile Picture
    2,898 Super User 2026 Season 1 on at
    Hi,
     
    This is because you have not defined Pmt. Export Line definition in Payment method.
     
    You need to select the Line definition with the Line type as Detail, in your case - FIRSTENTRYDETAIL.
     
    If you still face error after this, it is better if you can share the error screenshot and callstack. Copy error details.
     

    ✅ Tick the checkbox below to mark the answer as verified, if it helped resolve your question.

    Regards,
    Dhiren.
     
  • Suggested answer
    YUN ZHU Profile Picture
    99,559 Super User 2026 Season 1 on at
    Hope the following helps as well.
    Dynamics 365 Business Central: Add more custom processing when importing Bank Statement (Bank Export/Import Setup) – Customization
     
    Thanks.
    ZHU
  • OussamaSabbouh Profile Picture
    13,763 Super User 2026 Season 1 on at
    Hello,
     
    This is standard behavior: you don’t assign the entire Data Exchange Definition to the Payment Method, you only select the detail line code (Pmt. Export Line Definition), and Business Central automatically uses the full Data Exchange Definition behind it (including headers and footers) during export; so even though you can pick only one line in the Payment Method, the system still generates the complete multi-line file based on the full definition — nothing extra needs to be configured.
     
    Regards,
    Oussama Sabbouh
  • Verified answer
    NX-14051948-0 Profile Picture
    90 on at
    For future people looking into this.... it is not possible without a customization in the W1 localization to include the header and foot lines in the payment export file. This has been confirmed by Microsoft support. See below response from Microsoft. 
     
     

    Thank you for sharing the details regarding the export of header and detail lines in your Data Exchange Definition for payment journal exports.


    Based on the description, and please correct me if I am wrong, I understand that:

     

    - You are working within the Dynamics 365 Business Central W1 localization.
    - You have configured a Data Exchange Definition that includes both a Header and Detail line definition.
    - When exporting the payment journal file, only the detail lines are generated in the exported file.
    - Despite attempting multiple configuration changes within the Data Exchange Definition, the header line does not appear in the exported output.
    - You have shared screenshots showing the current setup and the resulting export file which does not contain the expected header record.


    You are looking to have the header line exported along with the payment journal detail lines, correct?


    I sincerely apologize for the inconvenience this has caused, and rest assured we are here to assist you.


    After reviewing the standard behavior of Business Central in this area, I would like to set the right expectation. When exporting data from the Payment Journal using standard functionality, Business Central generates only the detail (record) lines. Header and footer line types, even if defined in the Data Exchange Definition, are not included in the exported output by design. 


    If your business requirement is to include a header line in the exported file, this would require customization. Typically, this involves extending the export logic to explicitly write the header once and then append the journal detail lines accordingly. You can learn more about this from this document.

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,028 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,121 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 669 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans