The filename or extension is too long

I am Reading an Excel file which has extension “.Xlsx”. (excel application scope and workbook read range both tried).

File name is :- InputFile
SheetName is :- GranteeCheck

using Output Data Table activity after read range. Output variable of Output Data table activity is “OutputDt”

To print output using Message box.

Messagebox is showing error :- “File name or extension too long”
Can someone help?

Hi @197545

Instead of using message box,try write text file activity and write the data to text file as seems the data is large.


Hi @197545

Welcome to UiPath Forum,

Please make use of Path.Combine()


path = IO.Path.Combine(Directory.GetCurrentDirectory(), “Jobin.xlsx”)

For detailed analysis, please share sample code here. Thank you.

Thank you so much for the reply

Thank you for the reply. Problem solved.

1 Like

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