Data Transformer Trim function expected datatype: STRING_VALUE but received datatype: BOOL_VALUE

I am attempting to use the Data Transformer to trim a string. here is the script produced by using the diagram mode.

local f = import "functions";
local inputs = {"attendance": std.extVar("attendance")};
{"meet_event_title": f.trim(std.toString(inputs["attendance"]["eventTitle"]))}

when the task runs it errors with:

For meet_event_title variable, got a value with expected datatype: STRING_VALUE but received datatype: BOOL_VALUE

the output variable meet_event_title is of type string. the return type of the trim function is expected to be a string.

the attendance input is of type json and contains the eventTitle property of type string.

Do you have an example of a working trim function i could follow. thank you.

Hey @Michael5 ,

We’ve noticed your question hasn’t been answered yet, but we’ll keep it on our radar and will provide an update soon.

1 Like

Hi @Michael5
Thank you for highlighting this issue. This issue is now fixed.

1 Like

confirmed. it is now working. thank you.

1 Like