title: How to read CSV files with blank lines and extra headers in Mule dataweave
body: <p>I have CSV having blank line and extra herder below that like this:</p>
  
  <pre><code>**blank line**
  Available_Date_Feed
  productID,availableDate
  148305801,2015-08-07T00:00:00.000+0000
  160611862,2015-07-29T00:00:00.000+0000
  160611715,2015-07-29T00:00:00.000+0000
  160342798,2015-07-29T00:00:00.000+0000
  </code></pre>
  
  <p>I want to read values of productID &amp; availableDate. If we do regular transformation with dataweave it will return null values</p>
  
  <p>This is the code I have wrote in dataweave:</p>
  
  <pre><code>%dw 1.0
  %input in0 application/csv headers=true
  %output application/java
  ---
  payload  map  {
      productID:$.productID,
      availableDate:$.availableDate
  }
  </code></pre>
  
  <p>Returning payload as :</p>
  
  <pre><code>[{productID=null, availableDate=null}, {productID=null, availableDate=null}, {productID=null, availableDate=null}, {productID=null, availableDate=null}]
  </code></pre>
  
  <p>Any suggestions here?
  Can we use Groovy/MEL/regex expression for this?
  How to use Rows to ignore in Dataweave?</p>
  
  <p>Can we Skip first 2 lines using groovy/regex?</p>
  
  <p><strong>I am facing performance issue with the below groovy. Mule taking too much time to convert even 1 MB file. Is there any another solution for this?</strong> </p>