Skip to main content
Question

Remove attributes based on external list / Use attribute value as regex in BulkAttributeRemover

  • February 18, 2025
  • 1 reply
  • 32 views

lilywong
Participant
Forum|alt.badge.img+3

I have a workflow that:

  1. Takes a feature class from an ESRI Geodatabase (ArcSDE)
  2. Removes some attributes via AttributeRemover
  3. Writes to several different formats

I want to change Step 2 to use an external list (for example, a TXT file or CSV - the format is flexible), because other users will be regularly updating the list of attributes to remove.

It seems like AttributeRemover only takes a single string or manual selection of attributes, so I decided to try BulkAttributeRemover, since it can take an attribute value.

 

However, I ran into this problem:

Let’s say I want to remove all attributes that contain the string PRIVATE.

When I type the string PRIVATE into BulkAttributeRemover: Expression to Remove, the transformer functions as expected. It removes all attributes that contain the string PRIVATE.

However, if I create an attribute called “regex” and set its value to PRIVATE, and then use the attribute “regex” as the Expression to Remove in BulkAttributeRemover, the transformer removes all values that are within attributes containing the string PRIVATE. So the PRIVATE attributes still exist, they are just empty.

 

Any advice would be appreciated!

1 reply

emmaatsafe
Safer
Forum|alt.badge.img+8
  • Safer
  • February 19, 2025

Hi ​@lilywong,

I tested several methods, including BulkAttributeRemover, BulkAttributeRenamer, and PythonCaller, to remove the attributes, but I reached the same conclusion as you - the attributes that contain PRIVATE are still present, and their values appear to be <missing>.

I’ll file a ticket with our development team and keep you updated on the progress.

Thank you for bringing this to our attention!

Emma


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