Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Unable to save or update using data types



When opening a data type instance in an activity using the Obj-Open-By-Handle and saving the page list instance using the Obj-Save method, the changes do not reflect in the data type record.

Error Messages

Cannot save a page with an instance of class; it is read-only

Steps to Reproduce

  1. Create a data type with a local storage.
  2. Source the page list to the repeating grid.
  3. Add a button to call the activity to update the record.
  4. Open the data type instance using the Obj-Open-By-Handle method in an activity.
  5. Modify the Clipboard page using the Property-Set method.
  6. Call the Obj-Save method. Changes are not reflected in the the data type record post update.

Root Cause

The records were updated in the data type using a Page List. This was implemented incorrectly.


Perform the following local-change in the activity rule:
  1. Load the data page list using the Load-DataPage method.
  2. Iterate the page list results for each embedded page of data type class.
    • Open the object using Obj-Open method with Lock and ReleaseOnCommit options enabled in the Clipboard page in the Step page.
    • Set the property values that are updated to the Clipboard page in the Step page.
    • Call the Obj-Save on the Clipboard page in the Step page.
  3. Perform a Commit operation which must be outside the Step 2 iteration.
  4. Reload the page list in to Clipboard to reflect the changes made.

Published December 28, 2018 - Updated December 2, 2021

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us