Transformer Inside Loop

Most of us have this misconception that transformers can not be used inside loop. well i had this misconception. Recently i got insight into this and got clarification that transformer can be used inside loop.

Transformers can be used in a loop. What they do not do is accept a list when a single item is expected. The error message generated in this case is completely misleading. If you receive this error, you’re passing a list instead of a single item. Pass a single item and the error will disappear.

Thanks Reamon for the clarification.


Comments

2 responses to “Transformer Inside Loop”

  1. When an exception is encountered within a transformer – Will it revert the pipeline to the state before it was invoked?

  2. No, only the input of transformer servcie will be in lasterror/pipeline.

Questions? Comments? Suggestions? Let us know!! Like / Subscribe / Follow for more updates.