Skip to main content
Question

Using BulkAttributeRenamer to rename attribute names to only the first 10 characters.

  • April 11, 2019
  • 1 reply
  • 90 views

ngstoke
Contributor
Forum|alt.badge.img+1

Hello,

 

I'm having issues when trying to get the BulkAttributeRenamer to perform the following:

 

I need trim all attribute names down to only 10 characters in length.

When I set the Parameters for Action: to Regular Expression Replace and use this regular expression:

^.{10}

 

I'm able to match all the first 10 characters, but I actually don't need to replace these, I just want to use the matches to become the new attribute name. Am I going about this the wrong way with a regular expression? Any help is greatly appreciated.

 

Example:

Old Attribute Name ----> AREA_IMP_TEAM

New Attribute Name ----> AREA_IMPL_

 

1 reply

debbiatsafe
Safer
Forum|alt.badge.img+20

Hi @ngstoke

Have you seen this previous Q&A post? I would recommend trying the solution in @egomm's answer. I believe that should trim the attribute names to the first 10 characters using the BulkAttributeRenamer.


Reply


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