# Google sheet when saved as csv data file cannot be read correctly in POSTMAN

**URL:** <https://community.postman.com/t/google-sheet-when-saved-as-csv-data-file-cannot-be-read-correctly-in-postman/16995>\
**Category:** Help Hub\
**Tags:** csvdatafile\
**Created:** [October 22, 2020, 10:07am UTC](https://community.postman.com/t/google-sheet-when-saved-as-csv-data-file-cannot-be-read-correctly-in-postman/16995 "2020-10-22T10:07:12Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jency.stella19](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/jency.stella19/32/16633_2.png) [@jency.stella19](https://community.postman.com/u/jency.stella19)\
**Post date:** [October 22, 2020, 10:07am UTC](https://community.postman.com/t/google-sheet-when-saved-as-csv-data-file-cannot-be-read-correctly-in-postman/16995/1 "2020-10-22T10:07:12Z")

</div>

I have a google sheet with data as below:

![image](https://us1.discourse-cdn.com/getpostman/original/3X/e/a/ea1575e9fa7e38d206109725821fa0cd7dbb9b68.png)

I downloaded this sheet as .csv file and imported in Postman, on preview I see the zero’s removed although the field in data file is plain text

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/3/b/3b54968dc74d3e6d1296514928f8aee6919d709f.png)

I have attached the google sheet link for reference:  
[https://docs.google.com/spreadsheets/d/1FtunobmzbsvSkU\_UGb7qxKiU0r0rL4NzcMX3bVok4h4/edit?usp=sharing](https://docs.google.com/spreadsheets/d/1FtunobmzbsvSkU_UGb7qxKiU0r0rL4NzcMX3bVok4h4/edit?usp=sharing)

@danny-dainton could you pls have a look on this

---

<div class="post-metadata">

**Author:** ![allenheltondev](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/allenheltondev/32/31738_2.png) [@allenheltondev](https://community.postman.com/u/allenheltondev)\
**Post date:** [October 22, 2020, 11:52am UTC](https://community.postman.com/t/google-sheet-when-saved-as-csv-data-file-cannot-be-read-correctly-in-postman/16995/2 "2020-10-22T11:52:35Z")

</div>

I am pretty sure Postman is assuming the column is a number, therefore removing the leading 0’s.

You could edit the csv and surround the numbers in quotes to work around this.

---

<div class="post-metadata">

**Author:** ![meenakshi.dhanani](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/meenakshi.dhanani/32/5980_2.png) [@meenakshi.dhanani](https://community.postman.com/u/meenakshi.dhanani)\
**Post date:** [October 22, 2020, 12:27pm UTC](https://community.postman.com/t/google-sheet-when-saved-as-csv-data-file-cannot-be-read-correctly-in-postman/16995/3 "2020-10-22T12:27:28Z")

</div>

Hello,  
I found [this comment](https://github.com/postmanlabs/postman-app-support/issues/6798#issuecomment-506642247) that describes how Postman converts a number in a csv to a Javascript number, and that’s why for a number 000000000003060638 it converts to 3060638. The workaround suggested in the comment is also to add quotes.

There’s also a feature request for more control over CSV parsing.

---

<div class="post-metadata">

**Author:** ![jency.stella19](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/jency.stella19/32/16633_2.png) [@jency.stella19](https://community.postman.com/u/jency.stella19)\
**Post date:** [October 23, 2020, 3:00am UTC](https://community.postman.com/t/google-sheet-when-saved-as-csv-data-file-cannot-be-read-correctly-in-postman/16995/4 "2020-10-23T03:00:23Z")

</div>

Hi @allenheltondev  
I already tried the usage of quotes, but it didn’t give the expected result. Let me share what I got 🙂

1. By using only single quotes to the value as below  
 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/5/8/58de27bb47946b550d875a06965dcc8915f21354.png)  
POSTMAN preview was:  

2. By using only a single quote infront of the value as below:  
 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/b/8/b8d4549d6f2a76254f1fa3abde02205fac637a10.png)  
POSTMAN preview was:  

3. By using double quotes to the value as below:  
 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/c/e/cea39c0711e112a94301bfcb92297350992df60e.png)  
POSTMAN preview was:  

None of the above gave the correct value what I wanted.

**My expected output is:**

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/d/2/d2a66ad135114d0c30db751a991fe480dfbfd790.png)

---

<div class="post-metadata">

**Author:** ![meenakshi.dhanani](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/meenakshi.dhanani/32/5980_2.png) [@meenakshi.dhanani](https://community.postman.com/u/meenakshi.dhanani)\
**Post date:** [October 23, 2020, 6:46am UTC](https://community.postman.com/t/google-sheet-when-saved-as-csv-data-file-cannot-be-read-correctly-in-postman/16995/5 "2020-10-23T06:46:54Z")

</div>

Hey @jency.stella19,  
I tried substituting with quotes directly in the csv. And it works in the expected manner.

 ![Screenshot 2020-10-23 at 12.11.54 PM](https://us1.discourse-cdn.com/getpostman/original/3X/e/6/e6ed9396cb97414cf4287382ce9b349d256b20c1.png)

I am not able to attach the csv here, but this is how the csv looks:

 ![Screenshot 2020-10-23 at 12.16.13 PM](https://us1.discourse-cdn.com/getpostman/original/3X/b/c/bc96f363941d4e005b8a4bc296ef02b0211c1940.png)

---

<div class="post-metadata">

**Author:** ![allenheltondev](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/allenheltondev/32/31738_2.png) [@allenheltondev](https://community.postman.com/u/allenheltondev)\
**Post date:** [October 23, 2020, 11:24am UTC](https://community.postman.com/t/google-sheet-when-saved-as-csv-data-file-cannot-be-read-correctly-in-postman/16995/6 "2020-10-23T11:24:09Z")

</div>

Your example only has the single quote at the end of the value. That might be your issue.

It seems like @meenakshi.dhanani was able to get it working though.

---

<div class="post-metadata">

**Author:** ![jency.stella19](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/jency.stella19/32/16633_2.png) [@jency.stella19](https://community.postman.com/u/jency.stella19)\
**Post date:** [October 26, 2020, 9:33am UTC](https://community.postman.com/t/google-sheet-when-saved-as-csv-data-file-cannot-be-read-correctly-in-postman/16995/7 "2020-10-26T09:33:57Z")

</div>

@allenheltondev I have shared all possible combinations of the values but none worked 🙄

@meenakshi.dhanani The issue is with ‘google sheet’ not ‘csv file’ to be clear on my question raised, when a sheet is downloaded to csv format and imported in postman I get the above error.

---

<div class="post-metadata">

**Author:** ![allenheltondev](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/allenheltondev/32/31738_2.png) [@allenheltondev](https://community.postman.com/u/allenheltondev)\
**Post date:** [October 26, 2020, 11:16am UTC](https://community.postman.com/t/google-sheet-when-saved-as-csv-data-file-cannot-be-read-correctly-in-postman/16995/8 "2020-10-26T11:16:45Z")

</div>

Try editing the csv in a program that is not excel. I used notepad and added quotes around the number and Postman treated it appropriately.

![image](https://us1.discourse-cdn.com/getpostman/original/3X/7/6/767dd535957b33d5fe513a74e384b7958572f8df.png)

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/3/4/34b3c71c4f67760398dde2c334d0d7358db57afe.png)

---

<div class="post-metadata">

**Author:** ![jonsworkalias](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/jonsworkalias/32/3153_2.png) [@jonsworkalias](https://community.postman.com/u/jonsworkalias)\
**Post date:** [October 26, 2020, 5:15pm UTC](https://community.postman.com/t/google-sheet-when-saved-as-csv-data-file-cannot-be-read-correctly-in-postman/16995/9 "2020-10-26T17:15:54Z")

</div>

have you tried adding a single leading single-quote to the data? That at least seems to work on displaying the numbers fully within the Sheets app… (_updated_) and then if I save as csv, and open in notepad I can see the leading 0’s and there’s no single-quote included for formatting…

---

<div class="post-metadata">

**Author:** ![jency.stella19](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/jency.stella19/32/16633_2.png) [@jency.stella19](https://community.postman.com/u/jency.stella19)\
**Post date:** [November 10, 2020, 7:03am UTC](https://community.postman.com/t/google-sheet-when-saved-as-csv-data-file-cannot-be-read-correctly-in-postman/16995/10 "2020-11-10T07:03:47Z")

</div>

This worked @allenheltondev thanks for the trick here
