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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Bank Import - Footer Tag ignored

(4) ShareShare
ReportReport
Posted on by 12
Bank File import is ignoring the footer tag and trying to import the record as a line - thus erroring on the date field its searching for - given these characters are blank in the file.
 
If I delete the footer line and import, the file imports without issue. This is not what you want to happen with a customer.
 
I have a file type Fixed Text file to import. I have configured the Line Definitions for Header, Detail and Footer - just to be safe. I have set the Reading/Writing Codeunit to 1241 and Ext. Data Handling Codeunit to 1240.
 
I have the column record type as Text.
 
In the Footer Tag I have entered 99
 
 
In the Line Definitions I have defined column 1 (in all types - Header, Detail, Footer) as 2 characters in length.
 
The screenshot just shows the text file sample including header, lines and footer. 
 
 
Without getting a developer to customise the code unit - this should be able to import.
 
 
 
I have the same question (0)
  • Suggested answer
    Dr Gomathi MVP, MCT Community lead, MLE Profile Picture
    395 Super User 2025 Season 2 on at
    It looks like the system is not recognizing the footer tag properly and is treating it as a regular data line instead of skipping it. To resolve this, first, ensure that the Footer Tag field is exactly 99 without any spaces. Verify that the footer tag is correctly aligned in the fixed-width format. Next, check the Line Definitions in Data Exchange Definition, ensuring that column 1 is set as 2 characters in all types (Header, Detail, Footer) and the system correctly identifies 99 as a footer. Additionally, confirm that the text file uses UTF-8 or ASCII encoding, as hidden characters can sometimes cause mismatches. Opening the file in Notepad++ or another text editor and enabling "Show All Characters" can help identify any unexpected formatting. If the issue persists, try setting the Footer Tag to '99 ' (with a space) in case the system expects it in a specific format. Also, test with a smaller sample file containing only one detail line and the footer to check if the problem persists. If none of these steps work, consider temporarily changing the Reading/Writing Codeunit to 1240 instead of 1241 and testing again, as sometimes, using Custom Codeunit 1240 for external data handling provides better control. Let me know if you need further debugging assistance!
  • Gerardo Rentería García Profile Picture
    25,367 Most Valuable Professional on at
  • Suggested answer
    Ramesh Kumar Profile Picture
    7,529 Super User 2025 Season 2 on at
    Hi,
     
    I hope below solution provided by Gerardo can help and also see if you use the feature or App provided Yodlee. its report and good for importing statement.
     
  • Suggested answer
    Valentin Castravet Profile Picture
    31,485 Super User 2025 Season 2 on at
    Are the characters after 99 fixed or variable? If they're fixed, they can be included as part of the footer tag and perhaps it will work then
     
  • Suggested answer
    SM-18110414-0 Profile Picture
    12 on at
    I had previously reviewed the links posts mentioned. I am trying to avoid a custom port.
     
    Even if I put the 99 as a Data Line Tag against the Line Definition of a Line Type Footer as well as have the Footer Tag in the Header record set as 99 - this did not import.
     
    As the data populating the lines in column 1 is the same for all Detail lines (in this case, 50)- I decided to put a Data Line Tag in this field, removed the Footer Tags (kept the No. of Header Lines).
     
    This worked as it is only looking for 50 as the characters in column 1 and ignores the footer line.
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    20,614 Super User 2025 Season 2 on at

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,135

#2
YUN ZHU Profile Picture

YUN ZHU 733 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 612

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans