🎉 🎉   RAPIDMINER 9.5 BETA IS OUT!!!   🎉 🎉

GRAB THE HOTTEST NEW BETA OF RAPIDMINER STUDIO, SERVER, AND RADOOP. LET US KNOW WHAT YOU THINK!

CLICK HERE TO DOWNLOAD

🦉 🎤   RapidMiner Wisdom 2020 - CALL FOR SPEAKERS   🦉 🎤

We are inviting all community members to submit proposals to speak at Wisdom 2020 in Boston.


Whether it's a cool RapidMiner trick or a use case implementation, we want to see what you have.
Form link is below and deadline for submissions is November 15. See you in Boston!

CLICK HERE TO GO TO ENTRY FORM

"Substring Error on [Generate Attributes] Operator"

navyboysnavyboys Member Posts: 15  Maven
edited May 23 in Help
I wanted to use [Generate Attributes] operator to create a new attribute which is part of an existing one. The function expression I made is "cut(Date,1,4)", 'Date' is an existing attribute of ExampleSet, a typical presentation of the attribute is like '2007.03.12' .

When I tried to run the process, an error happened. 'Error during evaluation: Invalid argument value: Start and length exceed given string'. Anyone can tell me what I did make this happens?

Answers

  • colocolo Member Posts: 236  Guru
    Hi navyboys,

    the error message you quoted should have been followed by the string (attribute value for Date) that could not be cut by your function. Are you sure that every example contains a string value for Date that is at least 5 characters long?

    Regards,
    Matthias
  • navyboysnavyboys Member Posts: 15  Maven
    Hi, Matthias

    Thanks very much for your response.
    I change the format of attribute "Date", removed dot inside of it.
    Then, I used "Numerical to Polynominal" operator to convert the type before substring.

    It seems to succeed this time.

    Thanks & Best Regrads
    ZHENG Bin
Sign In or Register to comment.