Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Doubt about "Strings Cut" step

  1. #1
    Join Date
    Sep 2010
    Posts
    135

    Default Doubt about "Strings Cut" step

    Hi,

    While using this step, in some cases I'm getting the error "ArrayIndexOutOfBoundsException". I guess this error is because the length of the column I want to cut is smaller than the length I want to set to it. Is there any way to check the length before cutting strings? I mean, I want to cut several columns but if I have a value that is smaller that the desired lenth this will alwasy cause an error.

    Thanks in advance.
    Regards,
    Aitor

  2. #2
    Join Date
    Mar 2006
    Posts
    170

    Default

    Hi Aitor,

    The Calculator step has a "return the length of string a" ... use that and youshould have a quick way of making sure you don't cut passed the actual length.

    Hope that helps!

    Thx

    Kent

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.