cancel
Showing results for 
Search instead for 
Did you mean: 

Illegal to have multiple roots - Error in SAP CPI

0 Kudos

Hello Team,

I have one requirement where I need to fetch the records from multiple SuccessFactors entity.

I have used splitter and gather step to join the payload at the end.

But I am getting below error.

Error Details java.lang.IllegalStateException: com.ctc.wstx.exc.WstxParsingException: Illegal to have multiple roots (start tag in epilog?). at [row,col {unknown-source}]: [119,2], cause: com.ctc.wstx.exc.WstxParsingException: Illegal to have multiple roots (start tag in epilog?). at [row,col {unknown-source}]: [119,2]

Could anyone please suggest the solution? How to join all the received payload at the end.

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Sriprasadsbhat
Active Contributor
0 Kudos

Hello Rajani,

It completely depends on your usecase and volume of data you want to split.If you are having huge amount of data and it requires multiple enrichment then its not the right way to use Splitter & Gather.

Refer below for scatter and gather pattern.

https://help.sap.com/viewer/368c481cd6954bdfa5d0435479fd4eaf/Cloud/en-US/987eef23b2544f79b500b4e6e3b...

Regards,

Sriprasad Shivaram Bhat

Sriprasadsbhat
Active Contributor
0 Kudos

Hello Rajani,

Try to leverage Content Enricher if your splitted message contains key element.Refer below

https://blogs.sap.com/2019/11/08/handling-large-data-with-content-enricher-and-odata-v2-adapter/

Regards,

Sriprasad Shivaram Bhat

0 Kudos

Hello Sriprasad,

Is it possible to achieve to output by using splitter and gather?