Error while writing from one Excel to another Excel

Hello Team,

I am going through the UIpath Essential video tutorials and practicing the examples in Community Studio version. I am stuck in writing data from one Excel to another Excel. I can able to read the data and populate in the Message box. But while writing to the new .xlsx its showing compile error. Below are the ones I am seeing. Please advise on this if I need to change any thing as its showing some protection level?

Note: I have created the variable Datatable DT1 already in first Excel Application scope. Also I did not check the Private option

The workflow has validation errors. Review and resolve them first.
System.Activities.InvalidWorkflowException: The workflow has validation errors. Review and resolve them first. —> System.Activities.ValidationException: Compiler error(s) encountered processing expression “DT1”.
‘DT1’ is not declared. It may be inaccessible due to its protection level.

@GopinathSiddamsetty Change the scope of DT1, it will work

Hi Manjula nath,

Thanks for the swift response. I changed the scope to sequence from Do. It worked. Thanks again…

@GopinathSiddamsetty my name is manju nath not manjula nath bro :grinning:

I am really sorry!! Please don’t mind and kindly forgive me. Have a nice weekend. Thanks

@GopinathSiddamsetty i was just kidding, no problem. Happy weekend