Skip to main content
Solved

How to filter the last returned row

  • Jul 16, 2021 3:38 PM UTC
  • 5 replies
  • 199 views

oliver.morris
Supporter
Forum|alt.badge.img+14

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

Best answer by jdh

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)

View original
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.

5 replies

oliver.morris
Supporter
Forum|alt.badge.img+14
  • Author
  • Supporter
  • Jul 16, 2021 3:41 PM UTC

hkingsbury
Celebrity
Forum|alt.badge.img+73
  • Celebrity
  • Jul 18, 2021 8:22 PM UTC

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


oliver.morris
Supporter
Forum|alt.badge.img+14
  • Author
  • Supporter
  • Jul 19, 2021 10:50 AM UTC

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.


jdh
Contributor
Forum|alt.badge.img+41
  • Contributor
  • Best Answer
  • Jul 19, 2021 7:24 PM UTC

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)


oliver.morris
Supporter
Forum|alt.badge.img+14
  • Author
  • Supporter
  • Jul 20, 2021 10:21 AM UTC

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.