Problem importing custom package

I’ve built a custom package and now I want to import a module from it. Unfortunately, I get the following error:

Error — Validation Error
The private implementation of activity ‘1.2: TKP_Labels_SelectSeason_tocheck’ has the following validation error:
“Target is not valid because the ‘Strict selector’ method is not enabled.”

I don’t understand how to start debugging this kind of error. When I test the single module in Studio, I don’t get any error — the problem only occurs when importing it.

Do you have any idea what could be causing this? Thanks a lot in advance!

Hi @Mi_Pi

this error “Target is not valid because the ‘Strict selector’ method is not enabled” could be related to the UI activity inside your package using selector that is not strict enough

You can try to open the Custom Package Project, locate the Failing Activit, Re-Indicate the element, this force UiPath to generate a valid strict selector for the lib

Maybe that could help

@Mi_Pi

can you please tell what is happening in the module and what dependencies are present

cheers

The problem seems to be in the “extract table data” component, which in my case only works in computer vision and not with strict selector. I had to find a workaround, but it seems that that particular activity in that application cannot be used in a library.

Thank you all for your support

Hello @Mi_Pi

How did you workaround it? I’m having the same issue at the moment and I need to be able to extract a table from a desktop application.