Skip to main content
Solved

How does the AttributeValidator transformer process unique feature? Specifically, cloned attribute values.

  • May 6, 2020
  • 5 replies
  • 17 views

alexlynch3450
Contributor
Forum|alt.badge.img+15

Is there a way to reject or fail all features containing same value? Right now I would ideally like a way to route all features containing same value to failed port. Currently, for example, if I clone 1 record 3-time, two features fail and one feature pass. How do I route all features that have non-unique values to failed port?

Best answer by alexlynch3450

@jlbaker2779 @ebygomm : I was able to route features using uuidgenerator-->matcher-->attributecreator-->aggregator-->listRenamer/Remover-->attributeValidator-->listElementCounter-->Tester

csv22xlsxw.fmwt

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.

5 replies

ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • May 6, 2020

I'm not sure it's possible with the attribute validator, but you can use a matcher to find features that all share the same values.


Forum|alt.badge.img+2
  • 194 replies
  • May 6, 2020

I think I see what you're doing.

 

To generate some arbitrary data I used a creator with 5 duplicate values and a 2nd with 1 unique value.

 

Using the statistics calculator and group by function you can get a count of records. Anything with 2+ records is a duplicate and would be sent though the <Unfiltered> (failed port) of the attribute filter. The 1 value on the attribute filter would be all unique values.

 

 


alexlynch3450
Contributor
Forum|alt.badge.img+15
  • Author
  • Contributor
  • 68 replies
  • Best Answer
  • May 7, 2020

@jlbaker2779 @ebygomm : I was able to route features using uuidgenerator-->matcher-->attributecreator-->aggregator-->listRenamer/Remover-->attributeValidator-->listElementCounter-->Tester

csv22xlsxw.fmwt


alexlynch3450
Contributor
Forum|alt.badge.img+15
  • Author
  • Contributor
  • 68 replies
  • May 7, 2020

I think I see what you're doing.

 

To generate some arbitrary data I used a creator with 5 duplicate values and a 2nd with 1 unique value.

 

Using the statistics calculator and group by function you can get a count of records. Anything with 2+ records is a duplicate and would be sent though the <Unfiltered> (failed port) of the attribute filter. The 1 value on the attribute filter would be all unique values.

 

 

Think I figured it out.

Feel free to advise on workflow tweaks if bug or discrepancies are found.


alexlynch3450
Contributor
Forum|alt.badge.img+15
  • Author
  • Contributor
  • 68 replies
  • May 7, 2020

I'm not sure it's possible with the attribute validator, but you can use a matcher to find features that all share the same values.

Think I figured it out.

Feel free to advise on workflow tweaks if bug or discrepancies are found.