Skip to main content
Solved

Clean line breaks from Excel file? (Reader)

  • December 18, 2018
  • 3 replies
  • 118 views

Forum|alt.badge.img

Hi all,

 

 

After some investigation I found out my Excel reader file contains "line breaks" causing FME to write the content of a single Excel cell to multiple lines.

 

 

Is there a way in FME to clean line breaks?

 

 

Thanks,

 

Ed

Best answer by david_r

You can use a StringReplacer:

0684Q00000ArLUcQAN.png

Text to replace:

\n

For replacement text you can either leave it blank or use a space, depending on what you need.

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.

3 replies

david_r
Celebrity
  • Best Answer
  • December 18, 2018

You can use a StringReplacer:

0684Q00000ArLUcQAN.png

Text to replace:

\n

For replacement text you can either leave it blank or use a space, depending on what you need.


Forum|alt.badge.img
  • Author
  • December 18, 2018

You can use a StringReplacer:

0684Q00000ArLUcQAN.png

Text to replace:

\n

For replacement text you can either leave it blank or use a space, depending on what you need.

@david_r

 

 

Thanks David, that did the trick!

 

These "invisible" characters kill me every time.

 

 

Cheers,

 

Ed

david_r
Celebrity
  • December 18, 2018

@david_r

 

 

Thanks David, that did the trick!

 

These "invisible" characters kill me every time.

 

 

Cheers,

 

Ed

You're not the only one struggling with those...! Glad to hear it worked out.