I have a simple flow that reads a csv file using a File Connector and I am trying to transform that data to json. Does not matter what I put as expression, I am always getting ArrayIndexOutOfBoundsException at design time and the preview does not generate. Below is the flow:
<flow name="dw_exampleFlow">
<file:inbound-endpoint path="C:\BNA\dw_sample" responseTimeout="10000" mimeType="application/csv" doc:name="File"/>
<dw:transform-message doc:name="Transform Message" metadata:id="3496b3e4-708e-49c3-9f87-764eb149d1ee">
<dw:set-payload><![CDATA[%dw 1.0
%output application/dw
---
payload]]></dw:set-payload>
</dw:transform-message>
</flow>
</mule>
Below is the error I am getting: Design Time Error


%output application/json- Charu Khurana