Skip to main content
Solved

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


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.

View original
Did this help you find an answer to your question?

3 replies

liamfez
Influencer
Forum|alt.badge.img+34
  • 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+34
  • Influencer
  • May 15, 2024
kmc5678 wrote:

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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings