Question

concatenated parameters in python shutdown script not fully resolving


Badge +22
  • Contributor
  • 1959 replies
I have a couple of published parameters param1, and param2 and a private param (param3) which is concatenated from the published parameter :  $(param1)-$(param2)

 

 

if param1 is A

 

and param2 is B

 

I'm expecting param3 to be A-B

 

 

instead, in the python shutdown script

 

fme.macroValues['param3'] returns A-$(param2)

 

 

any ideas on how to get it to fully resolved.

3 replies

Userlevel 2
Badge +17
Hi,

 

 

I'm not sure the reason that such unexpected result occurs, but this code could be used as a workaround for the interim.

 

-----

 

value = '$(param3)'

 

-----

 

Tested with FME 2015.1.0.2.

 

 

Takashi
Userlevel 4
Hi

 

 

can you show us the exact content (Python code) for the "param3" scripted parameter? Maybe screen capture?

 

 

David
Badge +22
Hi Takashi, That workaround did the trick. Thank you.

Reply