Automation Working in attended mode but failing in Unattended mode

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?

@subham.dey,

Please specify the error you are getting.

Thanks,
Ashok :slight_smile:

Hi Ashok,
Below is a snap of the error i am getting.

Thanks,
Subham.

@subham.dey,

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 :slight_smile:

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

@subham.dey,

Can you share what’s there in the assign activity?

@ashokkarale ,

image
Here is the snap, for the assign activity.

Thanks,
Subham

@subham.dey,

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 :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.