We have an interface which reads the records in a file in a chunk through File adapter - ChunkedRead.
The schema used for chunk read is of fixed length type and uses padStyle and paddedBy properties. In BPEL, we have a while loop logic to check if outIsEOF = 'false', within that we have an invoke activity to read the xml file.
and an assign action within while will assign the value of returnIsEOF to outIsEOF, to process through loop.
When we execute, the process is picking up first record in the file and the value returned for *'returnIsEOF' is true*. hence the loop exits without processing next records. Please help me to understand if am missing out anything.
There may be a problem on the NXSD causing an invalid payload... See the following paragraph extracted from the docs...
If an invalid payload is provided, then ChunkedRead scenarios do not throw an exception. When a translation exception (bad record violating the NXSD specification) is encountered, the return header is populated with the translation exception message that includes details such as line and column where the error occurred. All translation errors do not result in a fault. These errors are manifested as a value in the return header. You must check the jca.file.IsMessageRejected and jca.file.RejectionReason header values to ascertain whether an exception has occurred. Additionally, you can also check the jca.file.NoDataFound header value.