I have created an automation, that was working fine in attended mode as well as unattended mode. But now it is failing in unattended mode but working perfectly fine in the attended mode. So i checked the logs from the orchestrator to see if any UI elements is failing. But what i got is an assign activity is getting faulted. Can anyone please help me with the issue?
It’s logical issue. Your code is trying to access array index which is out of boundary like your array have 2 items but bot trying to access 5th one.
Add logic to check if your array have the desired items or not.
Thanks,
Ashok
But its working perfectly when i run the same thing in the attended mode through studioX.
If the logic was supposed to be wrong it should have faulted in the attended mode also.
Thanks,
Subham
Can you share what’s there in the assign activity?
Ok. So issue would be variable fileNameExtr
after splitting don’t have 7th item. Log the variable value before split and check if it has the required number of . to split.
Why it’s working on dev and not on PROD?
It may be due to source of this variable depends on the environment. In dev it’s getting the correct format and in PROD it’s not.
Thanks,
Ashok
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.