Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

Export of leading zero in zip code field


Go to solution Solved by comment,

This topic is 712 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

Hi,

I ran up against a problem with trying to export a zip field that has a leading zero e.g. 01234 would export as 1234, I tried using Right ("00000" & zipCode; 5) but that didn't seem to work. My zipCode field is formatted as a text field. I am using filemaker pro 19 on a mac running os x monterey. Any help or feedback would be appreciated.

thanks,

Heidi

Posted

What is the format of the exported file, and what is the application you're using to open it? 

IIRC, there were reports of this issue involving Excel as the target application. 

 

  • Newbies
Posted
On 1/31/2023 at 1:17 PM, comment said:

What is the format of the exported file, and what is the application you're using to open it? 

IIRC, there were reports of this issue involving Excel as the target application. 

 

The format of the export file is comma separated values and the app I was using to view it was Numbers which is an Apple app similar to Excel.

Heidi

  • Solution
Posted (edited)
4 hours ago, heidi22 said:

The format of the export file is comma separated values and the app I was using to view it was Numbers

I see. I was able to reproduce the problem - which is entirely due to Numbers misinterpreting the data (same as Excel does). If you look at the exported .csv file, you will see that the original value is quoted and includes the original leading zero. 

You will get the correct result if you choose Excel Workbooks (.xlsx) as the intermediate format.
 

Alternatively, you could format the data in Numbers to display leading zeros:

image.png.81321d4f31a1e386855084e2eaf5794a.png

 

Edited by comment
  • Newbies
Posted

Comment, thanks very much for your feedback.

Before I read your reply I did take a look at the CSV file to see if the actual zip field with the leading zeros was being exported correctly by Filemaker pro 19. And yes, it was, I used the Atom app and also use TexEdit which showed that zip field did have leading zeros and was ok.

At least I know what is going on now.

Heidi

This topic is 712 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.