CV screen scope multiple languages error

Keep hitting this error: Argument ‘Descriptor’: The specified Activity definition contains multiple languages of expression activities that require compilation (languages discovered: ‘C#’). Only one language requiring compilation is allowed per definition. Please convert all expression activities that require compilation to a single language.

It happens using the CV Screen Scope process and the project is in C#

Hi @alexandra.wickel,

Is it throwing error only when using CV extract table activity?

Have you tried using other CV activities on the screen?

Do you still get the error?

Regards
Sonali

Hi @alexandra.wickel

As per my knowledge, This error occurs because CV activities use VB expressions by default. Since your project is in C#, mixing languages causes a conflict.
To fix this, replace or edit CV expressions to use C# syntax or avoid using mixed-language activities.

If you found helpful please mark as a solution. Thanks
Happy Automation with UiPath

I started a new project in VB and copied over the workflow. I took out CV extract table and used extract table data. Everything is working now except it says invalid UI node in CV Screen Scop actvity

Hi @alexandra.wickel

Re-indicate your screen for CV screen scope, it should resolve.

REgards
Sonali

Hi, i tried this and it did not work still getting invalid UI node notification. thanks for any help

@alexandra.wickel

After re-indicating, have you deleted the old screen from scope?

I don’t know anything about the error, but I just want to point out that you don’t need to use CV Screen Scope any more. You should be working in modern, and the modern activities have CV selectors built in along with strict, fuzzy, image, etc.

So you don’t use CV Screen Scope and the special CV activities. You just use the normal activities and they have CV built in.

What activity do you recommend to pull table from desktop app? @postwick

@alexandra.wickel

Like CV extract table, there is also a non-CV activity - extract table or table extraction wizard.

Regards
Sonali

Thank you @sonaliaggarwal47 I continue to hit this error in my workflow even tho when i check the extract table data wizard there is in fact data in it. NOt sure how to get this fixed so the data will pull. I tried re indicating the screen multiple times. Again i want to pull the table for each different hospital and append into one excel so i have all these activities in a for each excel row.

@alexandra.wickel

Can you please check your datatable if it has any rows or columns?

Also, please check that you have 1 datatable variable defines only. Sometimes we can end up defining same variable in different scopes and that can cause confusion.

Try running in debug mode and check.

Hi @alexandra.wickel

This screenshot is from extraction wizard. But there might be the case that in actual data is not being extracted.

To verify,
Can you put a breakpoint on write range and run the process in debug mode.

Then before continuing, go to your locals window and look for variable datatable in there and check if there is any data shown there?

Hi @sonaliaggarwal47 there is data in the table i was able to delete and re insert activity and it worked but when I move on to search the next hospital name and then scrape the table data it wont work… is this bc the data changes? what can i do to make this loop work properly?

@alexandra.wickel

yes that can be the case… if another hospital has more set of data(and pagination), it can cause problems.

For your extract data, can you please check all the selectors there? and window selector as well? It can be the possibility that screen name is changing leading with the hospital name change, so that can cause no data extraction because bot might still be looking for the old screen.

So, please check if there are any references of hospital name in the screen selectors for extract data activity. if there is , you need to replace those names with *

Thank you for your help i really appreciate it. @sonaliaggarwal47 this is the strict selector

@alexandra.wickel

Is this selector same as you get for another selector?

You will need yo pull selectors for different hospital names and then see if there are any differences or patterns

Then accordingly tweak your selector