Hello @j1070148
The error is occurred because of passing the value outside of the array.
For example, there are 4 values in an array, if we try to get the 5th value, the error will throw.
So check your code where the error occurs.
Note: array index always starts with 0, if you need 1st value use Array(0).to string and vice versa
But my process work well in the environment of Studio.
After publishing to Uipath Assistant, My process encounters an error message:
“Index was outside the bounds of the array.”
So, it might not be the problem of outside of the array, or in that case my process would go wrong in Studio.
I am wondering there any different set up between studio and assistant?
There should not be any error in Robot it works well in studio. This seems to be error in the index of the array that is declared.
Can you please confirm whether the error is happening at some particular step? and have you provided the array value with an index? If you share the screenshot of the workflow that will help.
Dears,
Thanks for your help.
I has solved the problem.
Because the path attachment saved is different in studio and in robot.
In Studio, it is acceptable for using the path omitting “C://…”, because studio would assume to use the same path which main.xaml exists if there is no complete path.
However, in robot, the assumed path is different with the path main.xaml existing.
So, in this case, just using the complete path in activity: save attachments can solve the problem.