Skip to main content
Solved

How to select the latest feature class from ESRI file geodatabase

  • August 29, 2023
  • 2 replies
  • 42 views

wil
Contributor
Forum|alt.badge.img+3

I have a file geodatabase where backups are stored with a date in the name that gives the backupdate, BU_20230724, BU_20230731 etc. How can I select that only the latest will be read for further analysis? Normally, a feature class is selected under Constraints > Tables and you can select the one you need but, the latest Backup will not stay the same during the year. In a automated proces I would like to select the one with the latest date without changing it manually.

Best answer by david_r

You can use the Schema reader to extract all the feature class names, use a Sorter and a Sampler (first 1) to get the latest and then send the name to a FeatureReader.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

david_r
Celebrity
  • Best Answer
  • August 29, 2023

You can use the Schema reader to extract all the feature class names, use a Sorter and a Sampler (first 1) to get the latest and then send the name to a FeatureReader.


wil
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • August 29, 2023

Many thanks, that's it.