# After making a change in the current Report Definition rule,how can it fetch the old records as well in prod environment.

**URL:** <https://forums.pega.com/t/after-making-a-change-in-the-current-report-definition-rule-how-can-it-fetch-the-old-records-as-well-in-prod-environment/4816>\
**Category:** General\
**Tags:** reporting, data-management, data-model, pega-platform, case-management\
**Created:** [July 24, 2023, 11:19am UTC](https://forums.pega.com/t/after-making-a-change-in-the-current-report-definition-rule-how-can-it-fetch-the-old-records-as-well-in-prod-environment/4816 "2023-07-24T11:19:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TanyaS58](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@TanyaS58](https://forums.pega.com/u/TanyaS58)\
**Post date:** [July 24, 2023, 11:19am UTC](https://forums.pega.com/t/after-making-a-change-in-the-current-report-definition-rule-how-can-it-fetch-the-old-records-as-well-in-prod-environment/4816/1 "2023-07-24T11:19:57Z")

</div>

This was asked in an interview that if we are already having one Report definition in prod but now in Dev we add a declare index join in it and then redploy, will it still fetch the old records?before the change?

---

<div class="post-metadata">

**Author:** ![Anoop\_Krishna](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/anoop_krishna/32/22727_2.png) [@Anoop\_Krishna](https://forums.pega.com/u/Anoop_Krishna)\
**Post date:** [July 24, 2023, 11:58am UTC](https://forums.pega.com/t/after-making-a-change-in-the-current-report-definition-rule-how-can-it-fetch-the-old-records-as-well-in-prod-environment/4816/2 "2023-07-24T11:58:39Z")

</div>

@TanyaS58 please check the below link for the answer. You need to run recreateindex— activity to populate old data.

[https://support.pega.com/question/how-reindex-declare-index-table](https://support.pega.com/question/how-reindex-declare-index-table)

---

<div class="post-metadata">

**Author:** ![Anoop\_Krishna](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/anoop_krishna/32/22727_2.png) [@Anoop\_Krishna](https://forums.pega.com/u/Anoop_Krishna)\
**Post date:** [July 26, 2023, 7:18pm UTC](https://forums.pega.com/t/after-making-a-change-in-the-current-report-definition-rule-how-can-it-fetch-the-old-records-as-well-in-prod-environment/4816/3 "2023-07-26T19:18:44Z")

</div>

@TanyaS58 please accept the solution if you have understood the solution.
