Question about Data Manipulation Practice 1 on Academy

Hi,

I’m trying to do a practice on UiPath Academy and having this error: ‘Object’ does not have a public instance method named ‘Sort’.

The type of InputData is not Object so I’m wondering why this is happening. And I think Sort() doesn’t require any parameters. So I didn’t enter any parameter.

Thank you

Hi @1111141

You should enter the parameter “Sort”

Regards
Gokul

Thank you for replying Gokul. Do you mean I should set the Parameters field of the Invoke method to Sort? I don’t understand why I should do this as Sort is a method and not a parameter. And I tried it and it didn’t work. Could you please elaborate more?

I’m using v2023.10.0 and encountered this same issue. I found that the error occurs if I enter the variable for the TargetObject field in the designer unless I select the variable by using the “+” button to the right of the input field. Typing in the variable name or selecting through the Advanced Editor cause the error.

Entering the TargetObject through the Properties window seems to work fine and does not cause this error.