Skip to main content
Question

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

  • April 11, 2019
  • 1 reply
  • 119 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_

 

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.

1 reply

debbiatsafe
Safer
Forum|alt.badge.img+21
  • Safer
  • 648 replies
  • April 11, 2019

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.