[Excel] Cannot name the Output Datatable for Read Range


#1

Hello All,

I’m following https://www.uipath.com/tutorials/excel-and-datatables-automation. In the step of adding Read Range, I cannot name the Output for Datatable. It notices that "Compiler Error encountered …"
You can see my attached screenshot for detail.


Please help me on this, thanks.


#2

Hi @hungnhp
Declare the variable before initializing the variable. Declare the variable by using variable pane or by clicking “CTRL + K” inside DataTable Text box of Output property. If you create variable in Variables pane , select Data Table as variable type, since Output of the Range Range activity will be in data table format.


#4

Thanks Ranjith, it solved problem.