0
votes

I am trying to do a POC, to read a csv file in Mulesoft using IBM MQ Connector

I am using "On New Message" node to read the message My csv file does not have header row and I am trying to read the first row records but not able to read it. Providing input directive header=false in Transform message is not working.

I am looking for a way to provide this information on "On New message" node itself.

For other connector like HTTP Listener, we can set MIME type as application csv and add parameter header=false.

code

%dw 2.0

input payload application/csv header=false

output application/csv header=false


payload[0]

1

1 Answers

1
votes

In the on new message listener you should be able to set the outputMimeType attribute with the "input" format configuration. It seems for this connector it is called Content Type (https://docs.mulesoft.com/ibm-mq-connector/1.6/ibm-mq-xml-ref#listener).:There is no input directive in DataWeave 2. You have to set the type at the connector operation/listener level.