如何解决这个问题
Invalid argument supplied to 'record', index '1' is invalid or out of bound.
Hi
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.
![Collaborator Silver Badge](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/39d17670-cf25-4e5f-a570-cb74d0dadb49_thumb.png)
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?
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.