I am processing a file where every other line is blank, how to get rid of these lines using dataweave or groovy? My payload now looks like this
my transformer which is parsing the lines is:
%dw 1.0
%output application/java
---
payload map
{
line: $[0]
}
Thanks for the response
Try the same dataweave with filtering the payload. Check if anything in the incoming payload is empty or null kind of thing which is causing the issue.