Skip to main content
Solved

writing csv-file, unwanted type conversion

  • March 7, 2017
  • 2 replies
  • 41 views

femo
Contributor
Forum|alt.badge.img+6

Hi,

I am facing a problem while writing into a csv.file:

FME converts the string '2-4' into 02.Apr., no matter what field type is set.

E.g. '17-19' remains as it is since it cannot be changed to a date Format.

Is there any smart Workaround or do I have to avoid/replace these strings?

Best answer by jeroenstiers

Hi femo,

In what software are you checking the result? Is that in FME Inspector / Excel / Notepad(++)

 

Because Excel is known to change the format indeed but when checking the data in Notepad++, does this conversion still happens?
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

Forum|alt.badge.img+7
  • Best Answer
  • March 7, 2017

Hi femo,

In what software are you checking the result? Is that in FME Inspector / Excel / Notepad(++)

 

Because Excel is known to change the format indeed but when checking the data in Notepad++, does this conversion still happens?

david_r
Celebrity
  • March 7, 2017

I agree with @jeroenstiers, it's most probably a presentation issue. Excel is a prime suspect for this as it often tries to guess the format of cell contents. If it is indeed Excel, try formatting the cells as "Text" and see if that works.

If nothing else works, try opening the CSV in something like Notepad and verify the contents.