getting String index out of range: -1 error while doing the data load

Rohit Agarwal
Mega Expert

getting  String index out of range: -1 error while doing data load in madrid

3 REPLIES 3

sachin_namjoshi
Kilo Patron
Kilo Patron

This is due to mismatch in data type on your source table which is receiving data.

Change dataype to integer to resolve issue.

 

Regards,

Sachin

Using script to get value. The field in the form is glide list and we are using script to get user name from wwid. The data load template contains wwid of users.

if this is list, then it stories comma separated list of user sys_id.

you can use below for glide list scripting.

https://docs.servicenow.com/bundle/madrid-application-development/page/script/business-rules/referen...

 

Regards,

Sachin