I have an issue with a Mule Dataweave Transformer getting an error, this only occurs if :-
An enricher is present wrapping a json:json-to-object-transformer
I had similar problem, the DW processor messes up the payload. So I added an Object-to-String before DW transformer and that worked fine.