Excel application scope cannot read my Sheet in excel

The sheet has the good name but studio said the sheet doesn’t exist

image

@Soudios

Close the Excel and re run it and make sure you have given same sheet name in Read Range Activity.

HI @Soudios

You have to give the same sheet name that is available in the excel file as the sheet name in the read range activity. Just make sure it is the same and it should work for you.

yes it’s the same :

image

Source: Read Range

Message: The sheet does not exist.

Exception Type: System.ArgumentException

RemoteException wrapping System.ArgumentException: The sheet does not exist.
at UiPath.Excel.WorkbookApplication.SetSheet(String sheetName, Boolean createNew)
at UiPath.Excel.Activities.ExcelInteropActivity`1.BeginExecute(AsyncCodeActivityContext context, AsyncCallback callback, Object state)
at System.Activities.AsyncCodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

Please check if there are any Leading or trailing space in the sheet name.

1 Like

Have you checked whether there are any spaces in front or at the end of the sheet name in the excel file? Double click on the sheet name, and select the entire thing and copy it to the sheet property

1 Like

doesn’t work

Can you share the excel file if possible so that we can have a look?

or else, use the Get Sheets activity inside the excel applcation scope. This will give you a lsit of sheets

Now, use a for each activity to access each sheet.

Inside the loop, place the read range activity and for the sheet property, provide

item.ToString

if you have only one sheet, this will perfectly work…

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