cancel
Showing results for 
Search instead for 
Did you mean: 

SAP cpi producess error at iterative splitter

Harikiran
Discoverer
0 Kudos

My integration flow processes an XML file containing multiple records. An iterative splitter separates each record for individual processing. Based on business logic, am filtering out some records, and the remaining ones are sent to the PEGA API. Finally, a gather component merges all responses, regardless of success or failure.

However, if the API returns a 400 status code (indicating an error) for any record, the splitter encounters an error. This error message appears: "error.java.lang.illegalstateexception: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in Prolog."

Ryan-Crosby
Active Contributor
0 Kudos
Yes, it means there is no XML for the splitter to parse and hence the error about the EOF in the prolog.
Harikiran
Discoverer
0 Kudos
Initially there is SF API call it will retrieve the data which is present and then iterative splitter has to split each payload like within one page we may 4 payloads,for further process we are validating records based on business conditions and when we sent to PEGA(Target) api we may get success response like 201 or failure 400 . so failure we are handling it as exception and the next record has to be taken by splitter but it's not happening. Error Details java.lang.IllegalStateException: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0], cause: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0]

Accepted Solutions (0)

Answers (1)

Answers (1)

Harikiran
Discoverer
0 Kudos

This was an issue not solution, hence removed