Skip to main content
Question

How to to find empty fields in columns ?

  • May 10, 2023
  • 2 replies
  • 210 views

spiderman
Contributor
Forum|alt.badge.img+7

How to find the column that has an empty fields ?

as example. I have 50 attribute names some of them has values and other is empty .

i do not want to use 50 tester to check for each attribute if it has value or not ?

is there easy solution to get the required columns that has no value ?

FME 2021

thanks in advance

2 replies

nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • May 10, 2023

One way to do this is to use an Aggregator, merge all features to one collection, Accumulation Mode: Use Attributes From One Feature.

Then an AttributeExploder to create a feature for each attribute.

Then test where _attr_value has no value.


virtualcitymatt
Celebrity
Forum|alt.badge.img+47

If all the attributes are exposed you can try and use an AttributeValidator where the rule is "Has a Value". You can select All Attributes in one click. The validator will also create a report for each failed feature so you can see what test is failed.