Question
Accenture
IN
Last activity: 7 Nov 2017 5:04 EST
Unable to save an editable data page
1. Editable data page of list structure is sourced by a report definition.
2. An activity references this data page and modifies the contents of this data page.
3. Tried saving the data page using Obj-Save.
4. Obj-Save failed due to below error-
Cannot save a page with an instance of class {Data Class}: it is read-only
Any suggestions on this are appreciated.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Accenture India PVT Ltd
IN
Hi mahesh/Satish,
I got a solution for this .In the activity do a Page- copy of primary page(datapage result into a temp page ) and do obj-save on temp page. It worked out for me .
Pegasystems Inc.
US
Hi Satish,
Can you try to deselect the writeNow checkbox in the Obj-Save method and add the Commit method after performing the changes to the data page. Also can you share the configuration details screenshots along with the tracer log if it still doesn't resolve your issue.
Regards
Mahesh
Accenture
IN
Hello Mahesh,
Above suggestion couldnt resolve the issue. PFAs for tracer log and rules snapshots.
Appreciate your support.
Accenture India PVT Ltd
IN
I am getting the same error for the similiar scenario discussed above .Need help
Truviq Systems Private Limited
NL
Hi,
Just to know, what is the need of using an Obj-Save below the property-set here?
Used only property-set without an Obj-Save has worked for me (reflected on Clipboard).
If the assumption is Obj-Save can save back the modified data to the table, no it cannot. (Correct me if am worng)
They do not automatically persist back to the source. That must be done explicitly
Hope this helps !
Thanks,
Srikanth.
Accenture
IN
Hi Srikanth,
My assumption is Obj-Save can save back the modified data on data page to the table.
As per database persistence in below link,
Editable data pages can be saved to DB.
Please let me know your thoughts.
Pegasystems Inc.
US
Hi Satish, Viji,
I had tried to remove the Obj-Save with a property update and commit, but the data is not being saved. So i had implemented your requirement with a sample use case and the data is being updated as expected.
Kindly go through my attachment for further information.
Regards
Mahesh
Accepted Solution
Accenture India PVT Ltd
IN
Hi mahesh/Satish,
I got a solution for this .In the activity do a Page- copy of primary page(datapage result into a temp page ) and do obj-save on temp page. It worked out for me .
Accenture
IN
Hello,
Thanks for the suggestions. Even I was able to achieve the functionality using a temp page but I was curious to know if we can achieve the same without using temp or additional page as below article says editable data pages are database persitent. So not sure what that actually means.
https://docs-previous.pega.com/comparing-data-pages-other-clipboard-pages