Working round the error "Index must be within the bounds of the List" when changing timesheet status
Who is this article for?Users who encounter the error
You may encounter the error message "Index must be within the bounds of the List" when changing timesheet status. This article explains the error and workaround.
1. Issue
When working through multiple timesheets and changing status you might see this error message:
Universal Time: (2024-09-18 09:00:56) Local Time: (2024-09-18 10:00:56) TimeZone: (01:00:00 DST)
Version: 6.0.1.8
EXCEPTION: ArgumentOutOfRangeException
message: Index must be within the bounds of the List.
Parameter name: index
This error appears if the application is waiting for data from the server while attempting to update the display, in order to show the timesheet you have just clicked in to.
2. Workaround
The error will occur if there is a significant amount of lag in the network connection at that moment.
The workaround is to move more slowly through the screen; allow the screen to load completely before changing row.