Skip to main content

Notifications

Announcements

No record found.

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

  • Verified answer
    WillWU Profile Picture
    WillWU 22,350 on at
    RE: Allow leading zeros in exported CSV file from Electronic reporting

    Hi Tarique,

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

    pastedimage1599117409971v1.png

  • Tech T Profile Picture
    Tech T 10 on at
    RE: Allow leading zeros in exported CSV file from Electronic reporting

    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
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Allow leading zeros in exported CSV file from Electronic reporting

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

  • Tech T Profile Picture
    Tech T 10 on at
    RE: Allow leading zeros in exported CSV file from Electronic reporting

    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?

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: Allow leading zeros in exported CSV file from Electronic reporting

    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

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Allow leading zeros in exported CSV file from Electronic reporting

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

  • nunomaia Profile Picture
    nunomaia 10,684 Super User 2024 Season 1 on at
    RE: Allow leading zeros in exported CSV file from Electronic reporting

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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,431 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,503 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans