Object Reference not set to instance of an object(Single Excel Process Scope)

I’m facing with a problem with excel application.It’s like UiPath can’t find or open Excel app.I thought it would be excel activity error so i put some activity above all the activity.It’s does not even run those activity, nothing work but that error.Please help me with it.

Here is my workflow

Hi @khant

Do you Excel application installed in your machine? If not this error arises.

Regards,

i’ve already installed excel app.
also added registry path for excel.exe
It’s does not show up that error when i crate a new project and use excel file activity and run sample.

@khant

Try using Excel Process Scope-> Use Excel File

Regards,

1 Like

hi @khant

Check if there is already an instance of Excel running in the background. UiPath might not be able to open a new instance if one is already open.

like this?
i can’t put any activity outside of “Single Excel Process Scope” scope.
If i want i’ve to put any other activities inside of it.

i do check about that.
did a restart my machine in case of excel process duplicates

@khant

Remove that Single Excel Process Scope and use Excel Process Scope and drag the activity Use excel file into Excel Process Scope.

Regards,

1 Like

Thanks alot brother.I’ve moved that activities from single excel process scope but it said variables were protected. I can’t use those variables in another scope.

@khant

If possible share the xaml file. I will check out with that

Regards,

1 Like

I just copied all the variables and paste in another excel scope :face_with_spiral_eyes:

1 Like

@khant

Leave excel process and single process scopes

  1. Use excel file and then use required qctivities in side
  2. If above does not work…try to create a new process and check if issue persists
  3. Even in new process if issue is there…change the excel apckage version or go to .nuget folder and then renames the packages folder to any other name and reopen the project
    C:\users\username\.nuget

Cheers