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 :
Finance | Project Operations, Human Resources, ...
Answered

Allow leading zeros in exported CSV file from Electronic reporting

(0) ShareShare
ReportReport
Posted on by 10

Hi Experts,

I am using Text file with file extension as .CSV to export payment file in CSV format in which I need to show the date value format as ddMMyyyy. But, when I check the output CSV file it trims leading zero. (i.e) If the date value is 03092020, it is showing as 3092020 in CSV file. Are there any formulas or am I missing anything please help on this.

pastedimage1599069013159v2.png

Output CSV file:

pastedimage1599069380090v3.png

  • nunomaia Profile Picture
    27 Moderator on at

    Can you open the CSV in Notepad ? Excel converts strings to number and removed leading zeros in values.

  • Suggested answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    Check the file with notepad, most likely there's nothing wrong with the exported data, instead it's the Excel cell formatting.

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hello Tarique,

    Can you please check your excel template that was used for this electronic report.

    In the template you can format the cells as you like.

    I wonder if the cell is formatted as an Excel text cell and then attached/linked to your electronic report configuration whether this fixes the issue.

    I would expect that but have not tested that.

    I leave that to you ;-)

    Best regards,

    Ludwig

  • Tech T Profile Picture
    10 on at

    Yes Nuno & Nikolaos.

    I can the see the expected output when I open the csv file from Notepad. But, after setting screen as ER destination system is using Excel to open the csv file and also it stores the file with excel format in ER reporting jobs. If I upload payment file to Bank SFTP folder as the destination, I wonder How Bank will open the file to process. Do you have any idea?

  • Verified answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    Banks obviously process the files automatically, and can definetely handle leading zeros in fields where they are supported.

  • Tech T Profile Picture
    10 on at

    Hello Ludwig,

    I have not used excel template in my reporting. If this is a right way to export payment file in csv format, Kindly provide material links.

  • Verified answer
    WillWU Profile Picture
    22,363 on at

    Hi Tarique,

    If the column is a fixed eight digit number in Excel, then you could try to set the cell format.

    pastedimage1599117409971v1.png

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 445 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 309 Super User 2026 Season 2

#3
CU29091230-0 Profile Picture

CU29091230-0 192

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans