Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

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. 

0 1 52
1 REPLY 1

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.

Top Labels in this Space