Error while writing from one Excel to another Excel

excel

#1

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.


#2

@GopinathSiddamsetty Change the scope of DT1, it will work


#3

Hi Manjula nath,

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


#4

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


#5

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


#6

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