Question


IBM
CN
Last activity: 26 May 2025 5:22 EDT
Fail to copy one page in a page list to another page
In a data transform, below step that copies one page in a page list from a data page to another page:
Set .SinglePage to D_GetCaseDetails[pyID:.CaseID].PageList(1)
Fail with error:
The property PageList was of mode Page List while the method on stack . was expecting String List mode
But if I use update page:
Update Page: .SinglePage with values from D_GetCaseDetails[pyID:.CaseID].PageList(1)
and then copy properties one by one in child steps of the Update Page
No error. Run normally.
May I know why I can not copy whole page with 1st solution?
-
Reply
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 26 May 2025 5:22 EDT


IBM
CN
I need run it earlier as the info read by the DT need display in review page before next assignment is open.
Finally I found a solution:
In "Pages & Classes", define ".SinglePage" with it's class, then it works
Seems the data transform called after wake up can not recognize the property .SinglePage (type: single page) is a page, so need such definition
Anyway, Pega often give "surprises" to us.
Thanks.


Capgemini
FR
Hello,
I understand your incompréhension towards this situation. The Set action in a data transform SHOULD work fine as source and target properties share the same time.
As far as I am concerned, I noticed that it is not always the case, and I haven't got any explanation about this situation either
As soon as you got a workaround, you should move on
However, I would recommend to use 'Append to' action so that u would not have to set any target property from the target page individually (it might get tedious if you have a lot of properties)
Hope this helps !


IBM
CN
@RusselK1 "Append to" seems used to append a page to a page list.
In my sample, I need copy one of pages in a page list to a single page.
One more f.y.i, the error happened when the data transform is run after a flow wake up from 5 seconds waiting.


Capgemini
FR
Yes, my bad, Append to is suitable for Page Lists only
However, my inital diagnostic stands, I am confident this issue is not systematic to your context and you should just move on as soon you identified a workaround


Capgemini
IN
Hi @MaxonL16591286,
I tried re creating the error you have shared and have implemented below step
But I'm not able to replicate the error you are getting instead its working fine for me. Am I missing something?
Updated: 26 May 2025 1:55 EDT


IBM
CN
Thanks. Yes, I forgot to share one more thing: The error happened when the data transform is run after a flow wake up from 5 seconds waiting.
The data transform is called from the "connector" (with a flow action) following the wait shape.


Capgemini
IN
Hi @MaxonL16591286,
I tried calling same from flow post wait shape as well, it is working fine for me.
But I have seen such issues while working with waits, as the system completes the wait the following action post wait doesn't get the proper context sometimes.
Try moving the DT to pre action if you have an assignment shape after wait, if not try adding a router utility(toworklist) after wait shape which will reset the context.
Hope it helps!
Thanks, Ankit


IBM
CN
Thanks, will try.
Accepted Solution
Updated: 26 May 2025 5:22 EDT


IBM
CN
I need run it earlier as the info read by the DT need display in review page before next assignment is open.
Finally I found a solution:
In "Pages & Classes", define ".SinglePage" with it's class, then it works
Seems the data transform called after wake up can not recognize the property .SinglePage (type: single page) is a page, so need such definition
Anyway, Pega often give "surprises" to us.
Thanks.