QuestionQ4

VerifiedTransform and format data with DataWeave

Refer to the exhibits.

The Set Payload transformer assigns the payload to an object. The Logger component’s message attribute is configured with the string Result: #[“INFO” ++ payload].

What is logged when the flow runs?

Question Image

Explanation

In DataWeave, ++ supports defined type combinations, including string-to-string and object-to-object concatenation. A string cannot be concatenated with an object payload using ++, so the Logger expression raises an unsupported String-and-Object operands error.

Community Discussion

No comments yet. Be the first to start the discussion!