Skip to Content
author's profile photo Former Member
Former Member

Simple UDF to remove first digit from field


unfortunately my searching for a solution was not successful.

I need a UDF to remove the first digit from a field in mapping !

The problem:

The field content length can vary from time to time, so a simple substring does not work.

So e.g. from 1029374 to Z56373 5583645908d374 anything is possible!

And I need to get rid of the first digit always.

Thank you for your help!

Best regards


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Sep 19, 2016 at 02:19 PM

    Hi Meinhard,

    Use below UDF:

    Execution Type: Single Values

    Argument : str

    public String removeFirst(String str, Container container) throws StreamTransformationException{
    return str.substring(1);




    test1.png (20.3 kB)
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.