I’ve started learning RPA a few weeks ago (slowly…), and I’m stuck.
I was supposed to create a sequence to automate the retrieval of email attachments from Outlook, and first I kept getting an error (For Each: Unable to cast object of type “System.Char” to type “System.Net.Mail.MailMessage”).
I double and even tripled checked and I had followed the instructions on the video to a T, but every time I debugged it, I kept getting the same error.
So I just deleted the whole all the steps as of the For Each activity and added it all again. When I debugged it, I didn’t get the error message anymore, but I noticed the folder Invoice hasn’t been created, and the attachments are nowhere to be seen.
You nave cteated the folder “Invoices”, but the error said " but I noticed the folder Invoice hasn’t been created". Are you sure about the folder? Also, can you remove the "" from "Invoices" and try again ?