[Excel] Cannot name the Output Datatable for Read Range

Hello All,

I’m following Excel Automation Tutorial - DataTables Automation | UiPath. 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.

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.

Thanks Ranjith, it solved problem.