Your code lines are looking fine on the first look. In such scenario a debugging and focusing on the content of ArrSub should give a first hint. If ArrSub is empty we do find the reason for the exception. Then we have to check why the Split is failing and will do the root cause analysis
Thnq for the suggestion, like u said i tried to get the value that is being passed for ArrSub by adding a Message Activity.
But on debugging i could see the value as “FWD:” (but no mail with that particular keyword is present on the top of my gmail inbox) and the my robot got terminated like as before(Assign: Value2 = ArrSub(1)).
My Actual automation workflow was about,
To read the gmail subject that is separated by ‘,’ . And to store the contents of email subject in a DB( I have used MsAccessDataBase).
Please find my .xaml file for my workflow.Main.xaml (11.6 KB)