Error entering email address - 'End of expression expected.'

First day in the academy and following along with the tutorial, finding My Unicorn Name. I’m at the stage where I’ve added Use the Desktop Outlook App, and the Send Email activity but when I enter the email address and the subject as the instructor does, I get a red exclamation message -

Argument 'To": Compiler error(s) encountered processing “myemail@mydomain.com”. End of expression expected.

I’ve tried adding various quotes but can go no further. The only difference is the ‘Text builder’ option does not appear as it does in the video. Can anyone see what I’m doing wrong?

hi @gerry.d.hayes,

Welcome to the UiPath Forum!

Can you share a screenshot of the code and error? Thanks.

Kind regards,
Kenneth

Hi @gerry.d.hayes,

Please try putting the Subject Name and the To value in double quotes. It will be like this:

myemail@mydomain.com

“Unicorn Name”

Hope this helps.

Kind regards,
Kenneth

1 Like

Hello @gerry.d.hayes
The string always passes in Double quotes, Like

"myemail@mydomain.com"
"Unicorn Name"


r

Thanks for your answers. I suspected that quotation marks were required but was having no joy adding them. The problem was my weird habit of putting the last set of quotes in first, and then navigating back to the start of the string and entering the opening set of quotations. The interface seemed to put an extra set of quotes at the end of the ones I entered which then caused the same error.

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