GMAIL GetAttachments : Attachments Attached with Special Characters ‘:’ or ‘/’

I have to detach attachments from a Gmail email. In emails there are also .eml (Return Outlook) that generates an error.
I use the Gmail.activities.GoogleAuthenticationScope activity to connect to the inbox. The Getattachments generates an error : “The given path’s format is not supported.”
Because the name of the attachment contains ‘:’ ‘/’ ‘\’.
Can help me solve this incident or not download .eml attachments (Outlook)

1 Like

Hi
welcome to uipath community
use this expression while mention the file path
System.Text.RegularExpressions.Regex.Replace(yourpathvariable.ToString,“[^.!#$%&/*]+”,“”)

Cheers @hardy

HI

I’ve modified the path out by adding your regular expression. I still have the message
“The given path’s format is not supported.”

Best regards