Hi,
I am facing an issue, I am reading the email with the subject Customer/customer, sometimes I got a blank email and some time with attachment. where there is an attachment I save in a particular folder and do the further operation. But when there is no attachment with email I just stoped the bot with written log there is no attachment in email and bot will not process further.
But here is when I get a blank email means with no attachment my bot is automatically downloading the attachment(Creating the blank excel file and save in a same folder). Can you please help with this. @Palaniyappan@HareeshMR@Lahiru.Fernando@lakshman
This email has no attachment, Means it’s a proper email but no attachment
Even you can see the time also when I receive the email and when bot created the file.
But when I run in debug mode it’s not saving any attachment in the same case but when run in normal mode it’s saving an attachment(created blank excel file) when there is no attachment in an email.
It should work.
Unless you have something to put in the Else activity, you may choose to put:
item.Subject.ToString.ToUpper.Contains(“CUSTOMER”) AND item.Attachments.Any
Hi
The condition be like in the first if condition item.Subject.ToString.ToUpper.Contains(“yourstringincapsletter”)
Then inside condition is perfect
I have a doubt with excel file been created
Kindly remove that save attachment in the THEN part and check once whether the file is getting created apart from this save attachment activity
great
So kindly check like excel in the universal search in the top right corner of the studio so that we can find where write range activity is used
— or check like InvoiceData.xlsx in the search
We can find that and disable it
And enable back the save attachment and try once
Cheers @balkishan