System exception at initialization: Specified cast is not valid. at Source: mscorlib

Hello, i am getting an error at the time of reading Outlook emails using “GetOutlookMailMessage” activity. The error message is : System exception at initialization: Specified cast is not valid. at Source: mscorlib. Can anyone please help me to resolve this error. Here, the variable type is System.Collections.Generic.List(System.Net.Mail.MailMessage).

image

Hi @mitradev_das,

In the properties panel, the ‘Top’ field should be a positive integer

But Still getting same error.

Hello @mitradev_das

Can you plz refer to the below post. Just try to restart the outlook and check whether you are able to get emails.

1 Like

I did the same and it worked. Thanks @Rahul_Unnikrishnan

1 Like

@mitradev_das Glad to hear that :slight_smile:

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