kushma gonna
kushma gonna

Reputation: 226

Getting error "unbalanced braces" in data weave in mule 3.9.3

I am using choice router to evalute expression. Here is the expression

enter image description here

and I tested this expression in dataweave here is the result.

enter image description here

but when I use the choice router to evalute the expression I am getting this result

enter image description here

and another thing the value of "payload.relations.rel" is "Microsoft.VSTS.Common.TestedBy-Reverse" why I am getting false for this expression bench : payload.relations.rel == "Microsoft.VSTS.Common.TestedBy-Reverse"

enter image description here

Upvotes: 0

Views: 169

Answers (1)

aled
aled

Reputation: 25812

The error is not from DataWeave. In Mule 3.x the expression language used is MEL (Mule Expression Language). DataWeave is only used in Transform components. This is different from Mule 4.x where DataWeave 2 is used as the expression language. Testing the expression of the choice in DataWeave is not a good test.

Also your tests show that you are comparing an array (payload.relations.rel) to a String. Try fixing the comparison first. Then if you still have the error try putting it into a logger component before the choice and see if it prints the right result.

Upvotes: 0

Related Questions