Skip to main content
Question

Featurereader cannot use an user parameter to read multipule feature types


jiaxin
Contributor
Forum|alt.badge.img+1

I use the feature reader to read data from PostGIS, I created a user parameter in feature reader to get the feature type to read. However, it did not work if I select multipule features (tables) from my postgres database. It only works when 1 feature type is selected. Is this a common issue of FME?

 

 

 

7 replies

hermann
Contributor
Forum|alt.badge.img+10
  • Contributor
  • May 21, 2024

Hei,

in the FeatureReader Parameters configure output ports. https://docs.safe.com/fme/2024.0/html/FME-Form-Documentation/FME-Transformers/Transformers/featurereader.htm#Output2 Choose if You want a single generic port or preconfigure specific ports for each of Your feature types. 

 


jiaxin
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • May 21, 2024
hermann wrote:

Hei,

in the FeatureReader Parameters configure output ports. https://docs.safe.com/fme/2024.0/html/FME-Form-Documentation/FME-Transformers/Transformers/featurereader.htm#Output2 Choose if You want a single generic port or preconfigure specific ports for each of Your feature types. 

 

Thank you Hermann,

This has nothing to do with output ports, in this case I chose single output port for further process. 

The error shows that 'ERROR:  relation "reference.dataset_invoer_bkk reference.uitzonderingen" does not exist’

reference.dataset_invoer_bkk and reference.uitzonderingen are two tables from the same schema, but while fme send calling message to postgres, it did not sepate those tow calls, instead, it called the database everything at the same time.

Thank you anyway for the help!


hermann
Contributor
Forum|alt.badge.img+10
  • Contributor
  • May 21, 2024

Hmm… How did you set up your User Parameter ? As Choice/List? This works for me… What version of FME / FeatureReader are You using? Try newest --- There have been some updates… Changelog - FME by Safe Software

 


hermann
Contributor
Forum|alt.badge.img+10
  • Contributor
  • May 21, 2024
UserParamater has to featuretype separated by “ ” (space) ==> FeatureReader directs each to a specified port

 


nielsgerrits
VIP
Forum|alt.badge.img+52

This works for me as well in 2021.2.6. What version do you use @jiaxin ?


jiaxin
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • May 21, 2024
nielsgerrits wrote:

This works for me as well in 2021.2.6. What version do you use @jiaxin ?

Hello Niels, I use 2023.1


jiaxin
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • May 21, 2024
hermann wrote:

Hmm… How did you set up your User Parameter ? As Choice/List? This works for me… What version of FME / FeatureReader are You using? Try newest --- There have been some updates… Changelog - FME by Safe Software

 

Hello Hermamm,

I generated the user parameter in the feature reader like this, and the FME version is 2023.1:

 


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