Skip to main content
Question

Non-hardcoded feature reader parameter fails in FME Server

  • September 18, 2021
  • 1 reply
  • 10 views

Hello,

 

I am trying to create a workspace that takes multiple user parameters and reads Esri Shapefile using the feature reader. But I have problems using the Feature reader when the dataset is not hardcoded.

 

This works fine, no errors:

$(FME_SHAREDRESOURCE_DATA)\\$(ENV_NAME)\\sve_1milj_Sweref_99_TM_shape.zip\\svk\\riks\\*.shp

 

But if I create another parameter called FME_SERVER_FILE_PATH and set its value to sve_1milj_Sweref_99_TM_shape.zip\\svk\\riks\\*.shp. So that the feature reader uses the dataset:

$(FME_SHAREDRESOURCE_DATA)\\$(ENV_NAME)\\$(FME_SERVER_FILE_PATH)

 

The Error I get is:

Shapefile Reader: 'C:\\ProgramData\\Safe Software\\FME Server\\resources\\data\\3DViewer-Dev' is not a valid Shapefile and cannot be read

 

Is it something I'm missing or maybe a bug? I am using FME Server 2021

 

 

Found out that I could not use the name that starts with FME_SERVER, when changing the name to something else the workspace run without problems. I guess FME_SERVER is reserved or something?


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