Hello,
I am creating NACHA file by receiving input in an XML format.
If I create FlatFile schema with record ids then I have to name the record fields as 1, 5, 6, 7,8,9 see below
1 (FileHeader) max repeat = single
—>5 (BatchHeader) - max repeat = unlimited
—>—>6 (Entry) max repeate = unlimited
—>—>—>7 (Addenda) max repeate = unlimited
—>8 (BatchTrailer) - max repeat = unlimited
9 (FileTrailer) max repeat = single
But when I try to create XML which confirms to document type associated with abouve schema. system does not allow because the xml nodes can not be numeric values like 1, 5,6 etc.
So I wanted to create schema contaning recordWithNoID records.
recordWithNoID (1 FileHeader) max repeat = single
—>recordWithNoID (5 BatchHeader) - max repeat = unlimited
—>—>recordWithNoID (6 Entry) max repeate = unlimited
—>—>—>recordWithNoID (7 Addenda) max repeate = unlimited
—>recordWithNoID (8 BatchTrailer) - max repeat = unlimited
recordWithNoID (9 FileTrailer) max repeat = single
when I use the above recordWithNoID schema and convertToString then Records 8 (BatchTrailer) and 9 (FileTrailer) does not get created. Is there a way to achieve this?
I was trying to find what is the reason for not generating Records 8 (BatchTrailer) and 9 (FileTrailer)
recWithNoIDLike46 = false (default) Determines how the pub.flatFile:convertToValues service handles recordWithNoID records.
false (the default): Each recordWithNoID record appears as a child of the record above it, in an array.
So in case of recordWithNoID NACHA schema 8 is not child of preceding node 7 and 9 is not child of preceding node 8. Is my conclusion right?
#edi#Integration-Server-and-ESB#webMethods