Question on Building the Workflow—Part One

Hi everyone,

I try to debug the sample of this lesson but there show an error as below. Any idea to solve it?

Hi @Lee_Jia_Jun

Please check in the variable panel whether that variable is created or not and also check the scope of variable.

Hi @Lee_Jia_Jun

Check you RetrievedEmail variable, it should be created, or search the right scope, if none of the above, then you can create that variable with the same type and same name(RetrievedEmail)

Regards

Hi,

May I know how to check the variable is created?

Hi,

May I know how to create it?

@Lee_Jia_Jun

You can find the variable created in the variable panel.

Hi

after I create a variable for RetrievedEmail, same error still occur.

Hi @Lee_Jia_Jun

Change the scope and check.

Hi

Only two option there I changed it to save the attachment but error still occur

Hi @Lee_Jia_Jun

Pass loop iteration variable to the save attachment activity in the place of RetreivedEmail variable. For save attachment activity input should be of type mailMessage.

image

Hi @Lee_Jia_Jun

Can I get your workflow projects that can be more easier

Regards

Hi i download the sample from this link

https://academy.uipath.com/learningpath-viewer/8279/1/507609/2

Sorry I didn’t get what you mean.

Hi @Lee_Jia_Jun

For Save Attachment Acivity input should be of variable type mailMessage , But in your code RetreivedEmail variable is of type MailAttachment. Change the variable type of RetreivedEmail form MailAttachment to MailMessage.

2 Likes

This is work! Thanks a lot

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