REP-1213 simply means, in your report layout, you’re using/referring to a field within a Repeating Frame but the source query of this Repeating Frame does not contain this field.
To understand this error in detail, we have built a tiny sample report. Let’s see that below:
Our sample report uses two tables to generate the report. We have an employee NAMES table from Opera PMS database and an employee phone table called, NAME_PHONE. The report output should look like this:
And, our queries look like this:
![rep-1213, oracle report error list](https://e360hospitality.com/wp-content/uploads/2023/10/rep-1213-queries.jpg)
Notice that we have linked both tables in using the field, NAME_ID. To see the link details, double-click on the arrow line. The Property Inspector opens with the details. Just make a note of it for now and close.
![rep-1213](https://e360hospitality.com/wp-content/uploads/2023/10/rep-1213-link-details.jpg)
And, out Paper Layout is below:
![](https://e360hospitality.com/wp-content/uploads/2023/10/image-1.png)
- Main Frame, M_G_NAME_ID_GRPFR covering all report objects.
- Inner Frame, M_G_NAME_ID_HDR containing report column titles (text/boilerplate type)
- A Repeating Frame, R_G_NAME_ID, containing all data fields from the queries.
Here, it is important to note the source of the Repeating Frame: currently, set to G_NAMES query.
![](https://e360hospitality.com/wp-content/uploads/2023/10/rep-1213-repeating-frame-source.jpg)
If you run the report, you get the below error:
![](https://e360hospitality.com/wp-content/uploads/2023/10/rep-1213-error.jpg)
To resolve REP-1213:
To resolve, Options A: You can add a new Repeating Frame inside the main frame and set the source to sub-query. Option B: Change the source of the existing Repeating Frame to the sub-query. The report output differs as explained below.
Option A: Add a Repeating Frame with its source set to G_PHONE_NUMBER inside the other Repeating Frame like below:
![](https://e360hospitality.com/wp-content/uploads/2023/10/rep-1213-repeating-frame.jpg)
Output:
![](https://e360hospitality.com/wp-content/uploads/2023/10/output-option-1.jpg)
Option B: Instead of adding a Repeating Frame inside the main RF, just change the source of the main Repeating Frame to G_PHONE_NUMBER (from G_NAMES before). However, the output would be different:
![rep-1213 error](https://e360hospitality.com/wp-content/uploads/2023/10/output-option-2.jpg)
Hope it helps.
1 Comment
It has helped me at tiem I was stuck. Thanks a million