Skip to main content
Solved

Want to differentiate whether a file contains all null values in particular column or only null values in few rows.

  • February 23, 2023
  • 2 replies
  • 28 views

Hello all,

I had one file which contains some null values and some state values. So in that case I am using the tester to filter null and non null values .but another file contains all the null values in the same column.so in the both cases we are getting the output in failed port as both files contains​ some null values. So how to differentiate whether a particular file contains all null values in the column or only few null values. So that if file contains all null values then we can send the error message.

Best answer by markatsafe

@gowripriya2k​ You can use StatisticsCalculator in more recent versions of FME (2022). Compare Total Count to Value Count. For strings, set the 'Method' to String. For columns that have all ,null> values, the Value Count = 0

image 

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

2 replies

Forum|alt.badge.img+2
  • Best Answer
  • February 23, 2023

@gowripriya2k​ You can use StatisticsCalculator in more recent versions of FME (2022). Compare Total Count to Value Count. For strings, set the 'Method' to String. For columns that have all ,null> values, the Value Count = 0

image 


markatsafe wrote:

@gowripriya2k​ You can use StatisticsCalculator in more recent versions of FME (2022). Compare Total Count to Value Count. For strings, set the 'Method' to String. For columns that have all ,null> values, the Value Count = 0

image 

Thankyou, it worked for me!​


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