Question
Help needed File listener Throwing error reading xml file
error : " Caught throwable processing MQtestXML1.xml com.pega.pegarules.pub.PRException: XML parse rule not valid for record at a time parsing."
Getting this err when I'm giving a sample xml file in folder path. Please see the screen shots and let me know where I need to change
I do not know what to give as "record terminator" for xml...tried with \n, \r\n, </>, and record length as 1. None of these taking that error. Parse rule looks good for me. please look at screen shots of parse xml and sample xml code. thank you
<?xml version="1.0" encoding="UTF-8"?>
<HrDataAgent>
<Pg>
<firstName>Haritha</firstName>
<lastName>Mettu</lastName>
<Position>Devloper</Position>
<USAIndicator>true</USAIndicator>
<TeamMemberId>333</TeamMemberId>
<Manager>HM</Manager>
</Pg>
</HrDataAgent>
First try to read the entire xml in a string property and then parse the string via parse xml within the processing activity. If that is successful, then the parse xml rule is good and listener is also able to read the file. Now, you can try to include the xml in the service file.
-Saikat