Skip to main content
Solved

How to update Feature Types using a FeatureReader


jon
Contributor
Forum|alt.badge.img+5
  • Contributor

For normal Reader feature types, to update for schema or attribute changes you simply go to Readers > Update Feature Types. I can't find the same functionality using a FeatureReader. Is there a way to do that? The only workaround I've found is to drop the FeatureReader and re-add it.

Best answer by chrisatsafe

Hi @Jon Atwood​ ,

Great question. As of 2021, there is actually a Regenerate button under the Feature Reader > Output > Output Ports parameter. If you are using an older version of FME, you can still get this done either by clicking on the Parameters button (for formats like Excel, CSV, Sheets) or selecting the feature types to read then clicking OK in the FeatureReader parameters.

 

Here are the 3 options:

2021-03-17_13-55-45

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

6 replies

chrisatsafe
Contributor
Forum|alt.badge.img+2
  • Contributor
  • Best Answer
  • March 17, 2021

Hi @Jon Atwood​ ,

Great question. As of 2021, there is actually a Regenerate button under the Feature Reader > Output > Output Ports parameter. If you are using an older version of FME, you can still get this done either by clicking on the Parameters button (for formats like Excel, CSV, Sheets) or selecting the feature types to read then clicking OK in the FeatureReader parameters.

 

Here are the 3 options:

2021-03-17_13-55-45


jon
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • March 18, 2021
chrisatsafe wrote:

Hi @Jon Atwood​ ,

Great question. As of 2021, there is actually a Regenerate button under the Feature Reader > Output > Output Ports parameter. If you are using an older version of FME, you can still get this done either by clicking on the Parameters button (for formats like Excel, CSV, Sheets) or selecting the feature types to read then clicking OK in the FeatureReader parameters.

 

Here are the 3 options:

2021-03-17_13-55-45

@chrisatsafe​  thanks for all the info! Currently running 2020 so guess I'll have to upgrade to get that cool new button


nic_ran
Contributor
Forum|alt.badge.img+16
  • Contributor
  • April 21, 2021

I have a follow up question...

Which version of reader does the FeatureReader use for a given format? Does it use the latest version available in the version of FME being used, or does it use the version that was in use at the time the FeatureReader was added to the canvas?

For example, I build a workspace using FME 2018 with a FeatureReader reading a Shape file. I then open and run the workspace in FME 2021. Will it run using the FME 2018 version of the Shape file reader, or the 2021 version?

There does not seem to be an option to "upgrade reader" as there is with standard readers/writers.


DanAtSafe
Safer
Forum|alt.badge.img+17
  • Safer
  • April 21, 2021
nic_ran wrote:

I have a follow up question...

Which version of reader does the FeatureReader use for a given format? Does it use the latest version available in the version of FME being used, or does it use the version that was in use at the time the FeatureReader was added to the canvas?

For example, I build a workspace using FME 2018 with a FeatureReader reading a Shape file. I then open and run the workspace in FME 2021. Will it run using the FME 2018 version of the Shape file reader, or the 2021 version?

There does not seem to be an option to "upgrade reader" as there is with standard readers/writers.

Hi @nic_ran​ The version used is the most recent for that build of FME when editing the FeatureReader. It's not yet possible to select particular versions of readers or even keep the version to what it was when the FeatureReader was first configured. This issue is being tracked via FMEENGINE-10220.


nic_ran
Contributor
Forum|alt.badge.img+16
  • Contributor
  • April 21, 2021
DanAtSafe wrote:

Hi @nic_ran​ The version used is the most recent for that build of FME when editing the FeatureReader. It's not yet possible to select particular versions of readers or even keep the version to what it was when the FeatureReader was first configured. This issue is being tracked via FMEENGINE-10220.

Thanks Dan. At least good to know how it behaves - and also that it might be something that will change in the future.


johnk
Contributor
Forum|alt.badge.img+4
  • Contributor
  • March 26, 2025

Hello - resurrecting this thread as I have a feature type regeneration question! I am using FeatureReader to read JSON. I have defined feature types set up, with attributes and geometry coming through, configured in the FeatureReader by using the JSON file itself. However, in production, i need the FeatureReader to read the JSON as text - via parameter (as it will be coming through FME Flow). The FeatureTypes are dropped when I change the data source to the parameter (which has the JSON text in as default) and regenerate doesn’t seem to work. 

Am I missing something obvious?

Thanks!

John


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