0

Im new to mulesoft, trying to extract database to a flatfile via json in mulesoft. Please help in writing dataweave expression for converting json payload to flatfile.

mule flow:

and my flat file schema is:

StudentDetailsSchema.ffd

With the above I'm getting exception like:

enter image description here

EzLo
  • 13,780
  • 10
  • 33
  • 38
  • 3
    It is better to include the actual code, text, etc in order to prevent a user from navigating away from the subject. It also helps with giving the user the ability to cut and paste. – Jim Grant Apr 29 '19 at 07:34

1 Answers1

0

It's expecting a map not an array(map in dataweave returns an array) If you want to ouptut an array, you need to modify your FFD schema so that it know its an array, using:

  - { idRef: 'PersonalInfo', count: '>1' } 
  - { idRef: 'CourseDetails', count: '>1' } 

That will fix your transform.

Ryan Carter
  • 11,441
  • 2
  • 20
  • 27