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

Community site session details

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

Remove blank line at the end of the CSV file

(0) ShareShare
ReportReport
Posted on by 1,455

Dear Experts,

I am using the CSV Buffer to export the data into a CSV file. After it got downloaded, there is one Blank Line at the end of the File.

For Ex. If there are 10 lines of data, the file contains 11 lines(the last line will be Blank Line).

Does anyone face the same issue? Or anyone have the Idea on the issue.

Or is there any way to remove this additional line?

I am using Business Central SaaS with the latest updates.

Any suggestions would be much appreciated.

Regards

Avinash B

I have the same question (0)
  • Avinash B Profile Picture
    1,455 on at
    RE: Remove blank line at the end of the CSV file

    The issue got resolved by using XMLPort.

    By using CSV Buffer, there will be always an extra line at the end.

    Thanks for all your suggestions.

    Regards

    Avinash B

  • Verified answer
    Binesh Profile Picture
    7,885 on at
    RE: Remove blank line at the end of the CSV file

    Hello,

    Use XMLPort to export in CSV.

    CSV Buffer will add a new line after writing all the data, it's standard behavior as shown below.

    pastedimage1594750057774v1.png

  • Suggested answer
    Renni Profile Picture
    958 on at
    RE: Remove blank line at the end of the CSV file

    You could try the data exchange mapping and set a transformation rule to remove the blank line

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Sumit Singh Profile Picture

Sumit Singh 2,916

#2
Sohail Ahmed Profile Picture

Sohail Ahmed 2,687 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 2,254 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans