I am using wm.b2b.edi:convertToString service to convert a record list to a character delimited file.
The values in the record list are retrieved from the DB, some of the fields can be null. The problem is that convertToString returns is not working properly with null fileds. I am getting the errorArray full of: ‘fieldname’ field not found in segment ‘SEGMID’ [EDICOR.000020.000058] error messages.
How should I do to obtain something like this:
Values:
RecordList
SEGMID
Field1 - one
Field2 - two
SEGMID
Field1 - three
Field2 -
SEGMID
Field1 -
Field2 - four
etc…
desired result I expect:
SEGMID,one,two
SEGMID,three,
SEGMID,four
Thank you in advance
Sorin