Error ERROR Validation Error Compiler error(s) encountered processing expression "MailInvDC".(2) : error BC30512: Option Strict On disallows implicit conversions from 'GmailMessage' to 'IEnumerable'

Error ERROR Validation Error Compiler error(s) encountered processing expression “MailInvDC”.(2) : error BC30512: Option Strict On disallows implicit conversions from ‘GmailMessage’ to ‘IEnumerable’.

Hi @RamgopalHS

above link might help you.

Cheers.

1 Like

Hi @RamgopalHS,

an implicit conversion from a GmailMessage object to an IEnumerable object that is not allowed under Option Strict On.

To fix this error, you can try explicitly converting the GmailMessage object to an IEnumerable object using the Enumerable method.

@RamgopalHS

I guess you are trying to use a Gmail Message variable in a loop which you cannot…Can you tell what you are trying to do…More details will help in giving you the right suggestion

cheers