Solved

How to filter the last returned row

  • 16 July 2021
  • 5 replies
  • 16 views

Badge +10

I am essentially looping through httpcaller results and need a way to pass a value from the last record returned in a loop, I dont know how many records will be returned. I was using the stats calc to get the max value but that is blocking the loop from running within the one workbench. Does anyone have any suggestions, thank you

icon

Best answer by jdh 19 July 2021, 21:24

View original

5 replies

Badge +10

I tried - https://community.safe.com/s/question/0D54Q000080hSVsSAM/how-to-filter-a-csv-file-based-on-the-last-row-in-fme but feature holder is a blocking transformer so no luck there

Userlevel 5
Badge +29

Use the sampler with it set to "Last N Features"

Badge +10

Use the sampler with it set to "Last N Features"

thanks but unfortunately I get - Input Splitter (BranchingFactory): Transformer/Factory GetMembers_Sampler is blocking and cannot be used in a loop, but was found between... so the sampler is a blocking transformer for this loop as well.

Badge +22

To use blocking transformers in a loop, you need to have a linked rather than embedded custom transformer. The loop input will also have to be published (really annoying, I generally call it LoopInputDoNotUse)

Badge +10

To use blocking transformers in a loop, you need to have a linked rather than embedded custom transformer. The loop input will also have to be published (really annoying, I generally call it LoopInputDoNotUse)

thanks, I went down this route as I dont think it is possible without blocking transformers.

Reply