Option stricts on disallows late binding


Hi Forum,I have been working in ml skills i have to change extract value from an object to string but the error is showing may i know what is the issue

can you show us the configured datatype of the
JsonObject variable?
PredictedClass variable

when
JsonObject - JObject
PredictedClass - String

also try: JsonObject("Predicted Class").Value(Of String)

ensure folowing:
Some activities are giving an Error: '‘VisualBasicValue`1’ requires compilation in order to run", after converting Windows-legacy project to the Windows compatibility - Help / Activities - UiPath Community Forum

as seen in your other screenshot:
JsonObject - JObject
grafik

check your datatatype setting from Object to JObject

Check and adapt:

check afterwards also and correct:
grafik

Your XAML:
grafik

Correct to:
grafik

As you see finally: Validations issues are gone:
grafik

May i know why we are using value(of string) instead of. Tostring just want to know for learning purpose @ppr

have a look here:
grafik

A Json
Parsed to a JObject

is defining different values: Date, double, string

with the Value(Of TheDataType) we can direct return the value within the specified datatype and do not need additional conversions

For sure it will only work, when the value is convertable

@Immanuel_George
as it should work and questions are answered, the topic could be closed, right?

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