# Pega Send random field in Request JSON Requst payload on Connect-REST

**URL:** <https://forums.pega.com/t/pega-send-random-field-in-request-json-requst-payload-on-connect-rest/8782>\
**Category:** General\
**Tags:** team-lead, healthcare-and-life-sciences, 8-8-2, data-integration, pega-platform\
**Created:** [December 30, 2024, 10:36am UTC](https://forums.pega.com/t/pega-send-random-field-in-request-json-requst-payload-on-connect-rest/8782 "2024-12-30T10:36:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AZARAHAMED](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@AZARAHAMED](https://forums.pega.com/u/AZARAHAMED)\
**Post date:** [December 30, 2024, 10:36am UTC](https://forums.pega.com/t/pega-send-random-field-in-request-json-requst-payload-on-connect-rest/8782/1 "2024-12-30T10:36:54Z")

</div>

Pega Send random field in Request JSON Requst payload on Connect-REST which was not defined Request data transform.

Refer the attached ss to reference the Request.bodyPOST which we set right before @baseclass pxCallConnector getting called. However when we looked at the actual payload which was generated in Pega Integration layer we have an additiona blank year filed was added. PFB.

“{“action\_json”:  
{  
“event\_id”:“E005436XXXXX”,  
“year”:“2025”,  
“include\_names”:“TRUE”,  
“year”:”“,  
“varid”:”"  
},  
“action”:“GET\_ALL\_XXXXXXXXX”}"

Pega is adding and additional year filed when its generated request JSON. Not sure where Pega picks it up adding this filed additionally.

 ![Screenshot 2024-12-27 090453.png](https://pega1.discourse-cdn.com/pega/original/2X/d/def85ee86710f0b8c10394d9848329072c6924b1.png)

---

<div class="post-metadata">

**Author:** ![Dharan](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/dharan/32/16827_2.png) [@Dharan](https://forums.pega.com/u/Dharan)\
**Post date:** [January 2, 2025, 12:47pm UTC](https://forums.pega.com/t/pega-send-random-field-in-request-json-requst-payload-on-connect-rest/8782/2 "2025-01-02T12:47:55Z")

</div>

@AZARAHAMEDCan you attach Request data transform ss

---

<div class="post-metadata">

**Author:** ![Sairohith](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/sairohith/32/23362_2.png) [@Sairohith](https://forums.pega.com/u/Sairohith)\
**Post date:** [January 4, 2025, 4:58pm UTC](https://forums.pega.com/t/pega-send-random-field-in-request-json-requst-payload-on-connect-rest/8782/3 "2025-01-04T16:58:07Z")

</div>

@AZARAHAMED The issue of an extra blank `year` field being added to the request JSON in a **Pega Connect-REST** call usually happens when the same property is referenced multiple times in the **Request Data Transform** or when a blank value is explicitly set. Check your **Request Data Transform** to ensure `.year` is not defined more than once or assigned as blank (`.year = ""`). Also, review the **Request Tab** in the **Connect-REST** rule for any unnecessary property mappings. If using `pxConvertPageToString`, enable the second parameter as `true` to exclude empty properties from the JSON. Confirm the clipboard page just before the `pxCallConnector` call to ensure no unintended properties are present. If the property exists in the class structure but is not being set, Pega might auto-initialize it during JSON generation. Use **Tracer** to capture the payload step by step and identify where the extra field gets added. Adjust the **Request Data Transform** and mappings carefully to avoid this issue

---

<div class="post-metadata">

**Author:** ![AZARAHAMED](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@AZARAHAMED](https://forums.pega.com/u/AZARAHAMED)\
**Post date:** [January 16, 2025, 4:58pm UTC](https://forums.pega.com/t/pega-send-random-field-in-request-json-requst-payload-on-connect-rest/8782/4 "2025-01-16T16:58:46Z")

</div>

@AZARAHAMED

We resolved the issue, by saving the same request data transform of the D Page.
