Skip to main content
Solved

Using deployment param through scripted param UI errors off; bug?


joaniegeo99
Contributor
Forum|alt.badge.img+1

FME(R) 2023.1.1.0 (20230928 - Build 23631 - WIN64)

I have a simple scripted parameter script in workbench to return the value of a deployment parameter and I’m wondering if there’s a bug in the interface. When I drag a user parameter onto the script canvas the code generated contains FME_MacroValues, eg.

FME_MacroValues['SomeUserParam']

If  I drag a deployment parameter, dpTest, onto the script canvas the code generated looks like

$(dpTest)

Here’s the script. The commented code fails; if I manually correct $(dpTest) to FME_MacroValues['dpTest'], it runs:

 

# Get the archive folder from deployment param
import fme

#arch = $(dpTest)
#return arch

return FME_MacroValues['dpTest']

 

Is this a bug? Thanks.

Best answer by mattmatsafe

Hi @joaniegeo99, thanks for reporting this! It is indeed a bug. We’ll get that fixed for a future release of FME. The workaround, as you’ve already found, is to manually correct the parameter format in the script. Apologies for any confusion and inconvenience this caused.

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

2 replies

mattmatsafe
Safer
Forum|alt.badge.img+10
  • Safer
  • Best Answer
  • March 18, 2024

Hi @joaniegeo99, thanks for reporting this! It is indeed a bug. We’ll get that fixed for a future release of FME. The workaround, as you’ve already found, is to manually correct the parameter format in the script. Apologies for any confusion and inconvenience this caused.


mattmatsafe
Safer
Forum|alt.badge.img+10

Please note that this has been fixed in FME 2024.1 b24555+


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