Skip to main content
Solved

fme workspace reading wrong parameter

  • December 14, 2018
  • 9 replies
  • 11 views

I have a template that I call and run with parameters but one of the parameters can be like this "something - else", but it only read "something", I need the whole word. any ideas?

Thanks

Best answer by david_r

If you're using the command line to pass the parameter value, that is an important detail. If you pass parameters that contains spaces or certain special characters, you should always put double quotes around them, e.g.

fme.exe --BoundaryType "Node - MUX"

 

View original
Did this help you find an answer to your question?

9 replies

david_r
Evangelist
  • December 14, 2018

Can you post a minimal working example here?


david_r wrote:

Can you post a minimal working example here?

the issue is with boundary type. it only read Node and forget about the rest. I try using in the definition Type : Text multiline and same result, wrong.


david_r
Evangelist
  • December 14, 2018

That's a funny one. I did a quick test but was unable to reproduce the issue using FME 2018.1.

Please try the attached template:

parameter_test.fmwt

I've had some experiences where parameter definitions have been corrupted, meaning that they've started to behave unexpectedly. In those cases I've had luck deleting the parameter and recreating it.


david_r wrote:

That's a funny one. I did a quick test but was unable to reproduce the issue using FME 2018.1.

Please try the attached template:

parameter_test.fmwt

I've had some experiences where parameter definitions have been corrupted, meaning that they've started to behave unexpectedly. In those cases I've had luck deleting the parameter and recreating it.

using fme 2017.0


david_r
Evangelist
  • December 14, 2018
yaraapplerocks wrote:

using fme 2017.0

Just tried with FME 2017.1, no problems... Consider recreating the parameter.


david_r wrote:

Just tried with FME 2017.1, no problems... Consider recreating the parameter.

I try recreating as suggested same issue. keep reading Node


david_r wrote:

Just tried with FME 2017.1, no problems... Consider recreating the parameter.

when I run the template from inside fme it works ok reads Node - MUX, but when I send a request and run fme from command line it only read Node.


david_r
Evangelist
  • Best Answer
  • December 14, 2018

If you're using the command line to pass the parameter value, that is an important detail. If you pass parameters that contains spaces or certain special characters, you should always put double quotes around them, e.g.

fme.exe --BoundaryType "Node - MUX"

 


david_r wrote:

If you're using the command line to pass the parameter value, that is an important detail. If you pass parameters that contains spaces or certain special characters, you should always put double quotes around them, e.g.

fme.exe --BoundaryType "Node - MUX"

 

thank you so much, that was the problem, I wasn't using double quotes.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings