Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runner Removes leading 0's from .csv data #2734

Closed
GriffinOSI opened this issue Feb 21, 2017 · 28 comments
Closed

Runner Removes leading 0's from .csv data #2734

GriffinOSI opened this issue Feb 21, 2017 · 28 comments

Comments

@GriffinOSI
Copy link

Postman Runner Removes leading "0" from values in .csv spreadsheet.

This causes tests to fail unless I create a new var, append a 0 then test against the new var.

excelview
preiviewvie

Postman for Windows
Version 4.10.2
win32 10.0.14393 / x64

There is reference to a similar issue here that was closed but it does not seemed to have been resolved

#1917 (comment)

@GriffinOSI GriffinOSI changed the title CSV Runner Removes leading 0's from .csv data Feb 21, 2017
@a85 a85 added the bug label Mar 26, 2017
@catcalling
Copy link

Hi, I also encountered the same problem. Is this fixed already? Or when will it be fixed? :(

@sdnts
Copy link

sdnts commented Oct 18, 2017

@catcalling This isn't fixed yet unfortunately, but we'll be taking a look at this.

@Pixelartist
Copy link

Having the same issue - would be nice to see it fixed.

@jacopone
Copy link

jacopone commented Mar 6, 2018

I am having the same issue - really important to fix

@lloydmoran
Copy link

Would love to see a fix for this.

@KatrinaC
Copy link

I'm also having issues with this. Any timeline for a fix?

@ashishkpathak
Copy link

This issue has been open over 2 years!! Its a very common feature required by the development community. Can this be prioritized.

@lucas937
Copy link

Is this issue still open? Very strange, this should be fixed ASAP. Im trying to work around this but its not working. what do i do?

@lloydmoran
Copy link

A workaround is to put the value in the .CSV in quotes e.g. "0000123". Not ideal for a few reasons but it worked for me.

@saswatds saswatds added this to Pending triage in Runtime Triage and Development via automation May 14, 2019
@yaredw
Copy link

yaredw commented Jun 7, 2019

So 2+ years later...hopefully this will be prioritized soon? It's kind of a big deal...

@vikiCoder
Copy link

Hi everyone,

We convert numbers without quotes in CSV file into JavaScript Number while parsing the CSV file in the Postman App. As a result, leading zeros from the number is removed because that information can't be stored in JavaScript Number. If you want to keep numbers with leading zeros as it is, you can specify them as a string in CSV file by wrapping the number in double quotes like below:

index,specialNumber
1,"000001"
2,"000002"

However, for the users who don't want this behavior or want to have more control over parsing, we are planning to provide options related to CSV file parsing behavior in our long term roadmap. We will consider adding an option to parse specified columns as string by default. Other suggestions are always welcome regarding what options you would like to have when we add them.

@saswatds
Copy link

Closing this issue for now in favour of the options feature

@ttan70
Copy link

ttan70 commented Mar 10, 2021

any update on this, I can't find a solution to fix this, all links take me back to this issue link

@thanhphuocdang
Copy link

I'm stuck on this after a thousand years.
Any better solution now?

@asharrahman-toast
Copy link

Any solution yet? Our team is running into lots of Postman Issues and this is the cherry on top.

@vikinzer
Copy link

This has not been fixed and the "We have a plan" post is 3 years old. This is kind of ridiculous.

@shubhbhargav shubhbhargav reopened this Jun 23, 2022
@VaishnaviChallaPostman
Copy link

Hey everyone 👋
Sorry for the inconvenience caused. We understand your concern.
Our team is looking into this issue and we will provide any updates here on this thread.
Thanks for your patience :)

@mohamead
Copy link

What is the status her?

@caljayw
Copy link

caljayw commented Nov 9, 2022

Any progress here?

@rodrigo-gonzalez-LS
Copy link

I prayed and prayed

@jmarine32
Copy link

Hi -- is there an update on this issue?

@kdomagal
Copy link

same problem here.. over two years and still not fixed, this is ridiculous

@Pixelartist
Copy link

I think this is just not getting any attention - @kdomagal is talking about two years. I hit this bug in 2017. Time flies.
@VaishnaviChallaPostman If there is a "vote for this bug" or any other community option, it would be great. We obviously cannot judge the workload on the devs nor do we understand your milestones.

@malvikach
Copy link
Collaborator

Hi All,

We are looking at this issue and have an approach/solution in mind. If anyone is interested to give us feedback or discuss the resolution, please drop us a note here or send me an email on malvika.chaudhary@postman.com

Thanks for your patience.

Regards,
Malvika

@ashishkpathak
Copy link

ashishkpathak commented Aug 1, 2023 via email

@malvikach
Copy link
Collaborator

@ashishkpathak 👋

Thanks for responding. We are thinking to let users specify the data types of the column in the preview screen. Once we parse the file and show it in the preview, we will give an option to the user to change the data type of a column. Hence, this will allow the user to change the datatype from "Number" to "String" so that the values with preceding zeros would be retained.

If you are up for a discussion, here is my calendar, please feel free to block some time. Alternatively, feel free to provide suggestions on this thread.

Thanks again

@malvikach malvikach moved this from Ready to Next in Runtime Triage and Development Aug 22, 2023
@Shobhitpatial01
Copy link

Hi I tried adding a [ ' ] in front of the leading zero worked for me as a workaround

@malvikach malvikach moved this from Next to Ready in Runtime Triage and Development Sep 14, 2023
@malvikach
Copy link
Collaborator

Hi everyone 👋

Glad to inform you that with the latest release of Postman v 10.18, we have included a fix to this problem.

You will now be able to let Postman know how you would like your data file columns to be parsed. We support String, Boolean, and Numbers apart from the default logic that is still available (option called "Auto-Detect").
When you upload a file, the file will be parsed based on the auto-detection logic that exists, however, you can change the column type of a file and select for the column to be of a given type such as "String". This will help you retain the preceding 0's in your data. The preview screen will show you how the data will be parsed once you change the type.

Please see the below video for a walkthrough of how this works:

Leading.zeroes.fix.mov

You can also read more about this on our learning center.

Hope this helps. Thanks everyone for giving us feedback on this.

I will be closing this ticket but please feel free to ask questions or give us feedback.

Regards,
Malvika

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests