Studio version 23.4.3 In DU template, 60_TrainExtractors, I am getting Validation Error (2) : error BC30512: Option Strict On disallows implicit conversions from 'Object' to 'String'

Realized some of the DU template has config as dictionary of string, string and others had string,object. Went through changing all to string,object and adding “.tostring” where needed. When finished I am now getting validation error in TrainExtractors xaml, but unable to find a variable/argument that is causing it. Invoke Arguments looks good and the individual properties of the extractor trainer activity are also not showing red, but the overall activity is. What do I need to do to be able to run my bot?

Hi @warek

In the EndPoint can you place your variable / text by clicking + button?
Because by default it will take as Object

Hope this may help you

Thanks,
Srini

Hi @warek ,

Could you just try removing all values and populate all the values one by one (hard code it at first, later we can add config) and then check whether the same error appears ?

This is just so that we can Target the correct property that is causing the issue.

I originally did. I cleared the whole endpoint, then added it back in using the + and still getting the same error. thanks

I tried hardcoding the value I had in the config file and I am still getting the same error. All other values are text and not variables or arguments.
thanks

Issue is now resolved, but I don’t know what was causing the trouble. That one activity still had the same error even after I cleared out all the values in it. I brought in a new “ML Extractor Training” activity, rebuilt it with the same values and it worked- even with using the folder path from config file.

@warek ,

We do these steps when these type of errors occur, it mostly happens if a project has been converted from Windows-Legacy to Windows compatibility.

Regarding your case as it is a DU process/Template, an update in the Dependencies could also be the reason.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.