The Altair Community is migrating to a new platform to provide a better experience for you. The RapidMiner Community will merge with the Altair Community at the same time. In preparation for the migration, both communities are on read-only mode from July 15th - July 24th, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here.

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

  • Options
    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. 


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

    Hi @robin,


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




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