Skip to main content
Solved

What is the best way to stop a workspace if a NULL value exists in field?

  • May 15, 2024
  • 3 replies
  • 122 views

kmc5678
Contributor
Forum|alt.badge.img+2

I have a workspace that sends data to a url through the HTTP Caller transformer. I want to terminate the workspace if a NULL value exists in a field that is in a table on a SQL database before the data is sent. What is the best way to do this? Do I still need the Creator transformer if I use a Tester?

 

Best answer by liamfez

You could use a Terminator after a Tester (testing for a NULL). Yes, you would still need a Creator to start things off in that case.

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.

3 replies

liamfez
Influencer
Forum|alt.badge.img+44
  • Influencer
  • Best Answer
  • May 15, 2024

You could use a Terminator after a Tester (testing for a NULL). Yes, you would still need a Creator to start things off in that case.


kmc5678
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • May 15, 2024

Thanks @liamfez, This is what I was thinking.  Would I connect the Passed Tester to the first HTTP Caller and then connect the Failed Tester to the Terminator (below)? 

 


liamfez
Influencer
Forum|alt.badge.img+44
  • Influencer
  • May 15, 2024

Thanks @liamfez, This is what I was thinking.  Would I connect the Passed Tester to the first HTTP Caller and then connect the Failed Tester to the Terminator (below)? 

 

Assuming you have the Tester set up so that features that are not NULL are Passed, then yes. If a NULL feature exits the Failed port, it will then terminate translation. You can add custom messages in the Terminator to provide more information, like a short message detailing why translation was terminated, which will go to the log.


I initially misunderstood your question about the Creator. How you have that screenshot you then do not need the Creator. The reader will provide the features.