Issue when embedding a data type in a data type

Hello,

I am encountering an issue with nested Page Lists in Pega 25.1.x (reproduced in both 25.1.0 and 25.1.2).

Data Model Architecture:

  • Case Type

    • .UnitList (Page List / Embedded List)

      • .Brk1List (Page List embedded within each UnitList entry)

The Scenario:

  1. In a View, I have included a table/list for .UnitList.

  2. I have configured an Add action to add records to .UnitList.

  3. Inside the entry/row for .UnitList, I have included the nested .Brk1List.

  4. I configured an Add action for the nested .Brk1List.

The Issue:

  • Adding the first record to .Brk1List works perfectly.

  • However, attempting to add a second record to the same .Brk1List triggers a system error.

  • I have worked on a similar use case few days back and I didn’t face this issue then. I was able to add multiple levels of embedded lists inside one another and able to add records for them.

Update : The issue is only happening when we only have embedded data fields in the edit/add action. If we add any text input field, it is no more happening.


Is it a known issue in the platform?

Is there pre/post processing or a form refresh setting logic in the second level of embedded? As you say, this works fine, the only thing I’ve seen is issues with some sort of recursive logic with embedded > embedded (i had an issue last week where i accidently called the second level from the third level and it all went awry)

Are you able to replicate the issue if you hve inline table for Brk list instead of Modal dialog? I’m suspecting because of 2 Modal dialogs because the refresh command is not able to perform Modal on top of Modal.

@MarcCheong No, there is no pre/post DT, no form refresh setting and no pyRefreshData. Just the views. As I mentioned in the update, Embedded>Embedded+(some other normal fields) is working but Embedded>Embedded only is causing the issue.

@RameshSangili Inline editing works fine. Even for 2 Modal dialogues, it is working fine, if I add just one text field in the first modal dialogue as updated here.

The issue seems specific only if embedded data field is present without any other field.

Thanks for your update. Can you please clarify this statemtnt?

The issue seems specific only if embedded data field is present without any other field.

Sure, In my original post, if we see, in a case there is a table Unit and I clicked on add record, there there is ONLY a table Brk1List with add button in which I added a record and for second record I got error.

In my Updated reply, in a case there is a table Unit and I clicked in add record(this part is cut from the video) and there we can see a text input field Category along with the table Brk1List that was present before. Now, I am able to add multiple records to Brk1List without any error.

The issue is, we cannot add more than one record to Brk1List if there is no text input field present parallel to it. If I remove that text field now, I again bump into same error.