Error: exception has been thrown by the target of an invocation

When I tried to close one of my sequence or workflow, I get following error:

exception has been thrown by the target of an invocation.

Anybody else faced the same?

Hi @malam003

Normally a Studio restart should fix any time of issue like that. Which version of Studio is it?

1 Like

Hi @loginerror

I’m also facing the same issue.
Suddenly my Project.json file is corrupted. There is no data present in it.
So, when I’m trying to load the project, it kept popping as File is not in Json format.

There are totally 2 projects of mine. The project.json file in other project folder is working. So, I copy pasted here and changed the “Name”, “Description”, “Project Version” fields.

Now when I opened the latest project.json, it is working. I’m able to open all the files present in that folder.

But I’m not able to Publish anything, as well as not able to close any workflow.


Kindly help me on this…!!

Hi Bharath,

Can you close UiPath and then remove the project.json on your project folder.

After that, try to run your Main.xaml to generate a new project.json file for your project.