Hi there, I am looking for a transformer or a solution that allows me to check if any attribute of a feature has a specific value (e.g. string "remove"). Only then I want to remove the attribute. Renaming would work as well. Thanks for your help.
@friedhelm This is probably easiest solved in a small Python script. I've attached an example workspace (FME 2021). The Python will remove any attribute with the value "AWS" and also create a list of the removed attributes.
Hi @friedhelm , you can use the NullAttributeMapper too with the settings shown in the attached screenshot.
Hi @friedhelm , you can use the NullAttributeMapper too with the settings shown in the attached screenshot.
@friedhelm This is probably easiest solved in a small Python script. I've attached an example workspace (FME 2021). The Python will remove any attribute with the value "AWS" and also create a list of the removed attributes.
In case it helps, I selected this as one of our questions of the week and created a video about my solution to it here: https://www.youtube.com/watch?v=ZvSaHQ7gouI&t=2338s
Reply
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.