Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.

String index out of range: -2

robinrobin Member Posts: 100 Guru
edited December 2018 in Help

Is it poor form to request that when performing a cut, that we have the ability to select if the process should fail or if it should ignore an error when the data string is not long enough for the cut being requested?

Best Answers

  • robinrobin Member Posts: 100 Guru
    Solution Accepted

    The 'Cut' operator. If I have a string that I want cut out some information I put in the start and end position. The problem comes in if I set an end position and the string is shorter than the total length I set then the I get an 'index out of range' error. 

     

    Instead of firing the error I should be able to say do not fault if the string is shorter than the stipulated range. 

Answers

  • MartinLiebigMartinLiebig Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,531 RM Data Scientist

    Hi @robin,

     

    what operator are you talking about? Sounds like an easy fix.

     

    BR,

    Martin

    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany
Sign In or Register to comment.