I am using update entity with dataservice and I get the error "
Index was out of range. Must be non-negative and less than the size of the collection. (Parameter ‘index’)" on unattended only
The error you’re encountering, “Index was out of range”, typically indicates that you’re trying to access an index in a collection that doesn’t exist. This issue seems to be occurring only in unattended mode and not in Studio, which might suggest a difference in environment configurations or resource availability.
Here are some steps you can take to troubleshoot and resolve the issue:
Verify Data: Double-check the data you are trying to use with the Update Entity activity. Ensure that it’s correctly populated and that all necessary fields are present. In unattended mode, there might be differences in data availability or timing compared to when you’re testing in Studio.
Environment Differences: Ensure that the environment in which the unattended robot is running is identical or at least compatible with the Studio environment. Differences in configurations, permissions, or resource availability could lead to this error.