Automic Workload Automation

 View Only

  • 1.  Error in the script job

    Posted Mar 11, 2025 05:41 AM

    Hi Team,

    We are able to see below error in the script job which is ending with fault error,

    U00020305 Runtime error in object 'SCRI.ITEM_RECON.RMS.DATA.COMPARE.TO.ILS', line '00002'. The start column for the sub-string statement ('018') is not within the string (length '0000').

    Kindly do let me know if anyone is aware of this error.

    Regards,

    Shravya



  • 2.  RE: Error in the script job

    Posted Mar 11, 2025 06:16 AM

    Hi Shravya,

    please check the SCRI object. You should find a string function in line 2 which causes the error.

    regards,
    Peter



    ------------------------------
    Automic Certified Professional/Expert & Broadcom Knight

    For AUTOMIC trainings please check https://www.qskills.de/qs/workshops/automic/
    ------------------------------



  • 3.  RE: Error in the script job

    Posted Mar 12, 2025 04:09 AM

    Hi Alshaya

    You're likely using STR_CUT to cut out some text. However, the index (18) you specify is out of range, as the length of the string is 0 (so empty).

    It's easy reproducible. In the example below, the first STR_CUT works with index 1, which is fine. The second STR_CUT tries to start at index 10, which does not exist in &TEXT# as the max index is 9.

    :SET &TEXT# = "123456789"
    :SET &SUB# = STR_CUT(&TEXT#, 1, 5)
    :PRINT &SUB#
    
    :SET &SUB# = STR_CUT(&TEXT#, 10, 1)
    :PRINT &SUB#

    U00020305 Runtime error in object 'SCRI.STR_SPLIT', line '00006'. The start column for the sub-string statement ('010') is not within the string (length '0009').



    ------------------------------
    ☎️ Swisscom Automation/AI Engineer & 🧙 PEM Creator

    Online Automic Training 24/7:
    https://membership.philippelmer.com/ (deutsch)
    https://pemautomic.com (english)
    ------------------------------