Bug with object repository

Every time I run the debugging process for a robot, it indicates that the objects are not present in the object repository. However, simply opening the file resolves the error. Yet, I must repeat this process each time.

Hi @Matias_Clemente.Arg

Which file are you opening?

Could you share more details?

Is object repository created in same project?

Or you are incorporating it from another package?

It began happening to me a few months ago. It is UiPath Community Edition. Shortly before, I had enabled the option to require the object repository. The objects experiencing this issue are those defined within the same project, not imported ones. I only have one imported package, but it does not cause any problems. I have around eight robots, and the same issue occurs with all of them.

Hi @Matias_Clemente.Arg ,

I think I have understood your problem, In order to rectify the object reference error. You might have enforced the Object Repository from the Studio settings. This will enforce before you debug, run the projects which will throw the error.

You can just toggle it off in the studio settings as shown in the below screenshot

Open the Studio -> Navigate to Settings -> Navigate to Design -> Untoggle the Object Repository enforeced

Let me know if this works

Thanks,
NaNi

Certainly, I believed it was a commendable practice to enforce the use of the repository. I enabled it a few months ago. While it is true that disabling this parameter would resolve the issue, perhaps it is not the most advisable approach. What would you recommend?

Hi @Matias_Clemente.Arg ,

That’s absolutely true. I won’t recommend to use the Ui Activities in the Dispatcher or Performer. It could be better if you can create the reusable components (Library) for each action. If you use the reusable components in your process it is very easy to debug the individual workflows and also if someone needs to use the same actions in different process they just need to install the package and use them across the processes. And adding the each element to object repository also can be done.

When you use the libraries it won’t throw the exception because you are not using any Ui Activities in the dispatcher and performer.

This is how I follow.

Let me know if you need more insights about this. Happy to help

Thanks,
NaNi