Custom Actions - Script - DataType Error

Hi,

I’m getting an error message while executing the custom actions script. both the variables test_name and result1 are string variables created in the recorder. How to overcome the error?

@CustomScriptAction(
input = [‘test_name’],
output = ‘result1’
)

def customScript() {
result1 = ‘test’;
}

Error Message:
Caused by: java.lang.ClassCastException: Cannot cast java.lang.String to com.workfusion.studio.rpa.recorder.api.types.RDataType at java.lang.Class.cast(Class.java:3369)

@anandhan You need to remove the quotes

Thanks, It’s not working on removing the quotes.

Resolved by using RString.of as below
result1 = RString.of(‘test’);