Can anyone help me to fix this issue? I'm new to pega and seeing this error for the first time

Are you trying to save the page ? or read the page ?

For my requirement, I have used data reference to fetch the exisiting details then using savable data page I want to update one property.

Hi @JeetS17799231 ,

If you want update data for the respective fields,

please fallow below articles, so that it will help you

Thanks,

Ashok

It seems that you’re trying to read the null property value (“lockinfo”) from the Data Page results. Could you please add a null check before retrieving the values?

Can you guide me how to update a record through savable data page. The issue is likely in how I am calling the savable data page. I have two requirements.
Update an individual record that is stored it in a data reference field
Add embedded data list of records to SOR in a single go.

I hope this article helps you

Savable Data Pages | Pega Academy

Thanks for the article but I have already gone through it and implemented the same method. But it is only working from the author persona. For CSA persona that error is poping up.

Could you share your configuration? How are you saving your data page - via activity or the flow action rule?

@Kamil_Janeczek used to have this as part of his constellation training workshops many years ago, where you’d reference the saveable data page directly in your data model then use flow action to natively save that.

So i’m thinking your error is probably A) how you are saving B) the save plan itself. Something you are doing is being blocked for end user…

@Kamil_Janeczek i think we need a 101 on this pattern :wink:

Select and update reference data

Data Reference field supports edition of existing objects – select and edit pattern. User can select record from referenced Data Object and edit it. In order to use this pattern, you need to:

When all conditions are met Pega renders form in editable mode allowing user to modify

Data Object. Data is saved on assignment submission

Could you please share the screenshots of Savable Data Page and your data model that you’re updating?

I think what @RameshSangili and I are after is the data model and form behind this screen.

What I was expecting as you have a data reference in your case

So for you a Patient Details property defined as a saveable datapage in your data model? And then is that what is added to your View?

Using row action, I am selecting one record for a case type say cancellation. This record is stored in a Data Reference field. Now I want to change the status as cancelled and taking the reason for cancellation from the CSA. Using savable datapage and data transform it was working from the author but when I tried it with CSA operator it is throwing this error

I am still unsure how you have configured this. I just built this now, funny enough had another scenario asked of me where saveable datapage was going to help.

Maybe this will help you?

Run time

Design Time

Data Model tab

View

Flow Action

To save the datapage, refering to the property from data model tab

As I can see, for your case you are taking the data reference field from the case itself. For my requirement, I created one user action (create case) in the data type and from the row action I was selecting a particular record. This is when the “lock info is null” error was coming. I tried with activity refresh and lock to acquire lock explicitly and that worked. But without that the row action was only working for author. So I added the sysAdmin4 role to my CSA access group as of now.

OK, so the configuration provided then would more be on the case, and how to update the saveable data page for the “cancellation” status.

As for retrieving the details, I assume you are setting the value rather than looking it up - this field should allow you to show the values?

Yes. I exactly did this. There is one data ref field in my case type data model where I am storing this. Then using row action when I am creating the case, in the details view I am displaying the page properties. Then taking reason for cancellation and submit it. At submission I am getting the lock info null error

@JeetS17799231 the config shared earlier had the save data page smart shape in your flow. Could you try:

  1. without this - then nothing saves but want to test your created case to see if it works “vanilla”, without any bells or whistles
  2. use the flow action save of the data page - i’ve never had much luck with the save data page smart shape

Can I use associated property here? Cause I am updating one property of that data reference field. If I use associated property then I am getting stale data in view. So I am using parameter for the savable data page to pass the pyGUID