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)
------------------------------
Original Message:
Sent: Mar 11, 2025 05:41 AM
From: ALSHAYA AUTOMIC
Subject: Error in the script job
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