Discussion

Apply-Parse-XML method

Hi-

does any of you why we will get this type of exception at run time?

com.pega.pegarules.pub.PRRuntimeException: A step page is required for applying an XML parse rule.

Appreciate your early help on this.

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

August 5, 2010 - 3:42pm

You will need to specify a Page Name that contains your XML message for the Apply-Parse-XML method to parse.

Pega
August 5, 2010 - 5:18pm

Specifically, the step page is where the parsed XML data will be placed. It is also used to derive the Applies To class for the parse rule. This page needs to exist in the clipboard at the time that the Apply-Parse-XML step is reached. Typically, the activity with the Apply-Parse-XML step would also have a Page-New step above it.

August 6, 2010 - 8:55am

yes I have given the step page name, though it was throwing that error for me.

However it worked after I restarted my session.

Thank you all for your quick response.

March 3, 2016 - 11:02pm

Hello All,

 

I got the below response in the form of XML and I want to parse this XML using Apply-Parse-XML, set values to different properties using activity.

<?xml version="1.0" encoding="utf-16"?><CurrentWeather>  <Location>Hyderabad Airport, India (VOHY) 17-27N 078-28E 545M</Location>  <Time>Mar 03, 2016 - 09:30 AM EST / 2016.03.03 1430 UTC</Time>  <Wind> from the ESE (110 degrees) at 5 MPH (4 KT):0</Wind>  <Visibility> 3 mile(s):0</Visibility>  <SkyConditions> partly cloudy</SkyConditions>  <Temperature> 86 F (30 C)</Temperature>  <DewPoint> 57 F (14 C)</DewPoint>  <RelativeHumidity> 37%</RelativeHumidity>  <Pressure> 30.06 in. Hg (1018 hPa)</Pressure>  <Status>Success</Status></CurrentWeather>

Can any one help me on this.

Thanks in advance.

 

Regards,

Anil Sadineni.