Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Repetitive embedded page in REST service request

SA-55645

Summary



Embedded page is created repetitively in a Service-REST request.


Error Messages



Not Applicable


Steps to Reproduce

  1. Create a REST service with the POST method
  2. Run the service. The page structure is created at runtime.


Root Cause



Classless page is created in the Clipboard when an inappropriate request body is sent to the Service-REST .

For example,

Actual Body Request

    {
      "name":"Test",
       "age":"26"
    }


Modified Request

    {
        "person":{
                          "name":"Test",
                          "age":"26"
                        }
    }


A pageless object, 'Person', is created in the Clipboard.


Resolution

Here's the explanation for the reported behavior:

JSON mapping in Service-REST rule creates virtual properties. If it does not find a matching physical property,  a classless page is created. To avoid classless pages, the page property configured in the Service-REST rule must include the data model that is created in it. This data model must be identical to the incoming JSON keys hierarchy.



​​​​

 

Suggest Edit

Published August 24, 2018 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us