Skip to main content

如何解决这个问题

Hi @GuangRui.Z2 ,

 

Kindly share a bit more details on this like when and where you are getting this error.

 

If you are getting this while looping through an Excel file, please change the Index value to 0 as the Index in Excel file is staring from zero.


@GuangRui.Z2 

The index you provided is not valid or there is no data at that index.

 

please check the variable if it has data and also generally index starts from 0 ..so if you have only one value then ideally index will be 0 and not 1

 

cheers


So if we are looping through a list which is fetched every time from external source, it has different number of values each time. Sometimes List has 1 value, sometimes 2 or more. I tried to verify with ‘If’ string condition to check if list 1] = empty or not but the above error is coming. How do we proceed?


Found the solution! Used List:size to fetch the number of values and used If -number condition to verify.


Reply