Support Article
Read-only Data Page is modified on search
SA-20471
Summary
Developer has configured a Read-Only Data Page containing the list of US states. When it tries to search with a value that does not exist in the Data Page, it updates Data Page with same value. After the update, any account launched on the Page shows an error on UI as 'Cannot find the Property'.
Error Messages
Cannot find property Region in the Report results
Steps to Reproduce
- Create a Read-Only Data Page.
- Created an activity that fetches values from DB and place them on data page.
- Update the Data Page by using a data transform.
Root Cause
The application has been upgraded from 6.3 SP1 to PRPC 7.1.7. In 6.3 SP1 if we search for value that is not available in Data Page then it would throw ReadOnlyException as expected.
In 7.1.7 if a value us searched, which is not available in Data Page, then system adds Page to DataPage with blank values though the Data Page is Read-Only and at Node level. Since it is at Node -Level, any value launched next will always display "Cannot find the property" due to this newly added State in data page. This issue is happening for the reason is the newly added Page does not contain other details and always exist in the list at first place after sorting.
This is a change made in 7.X to create blank properties on read only pages(though one will never be able to set a value to it) to avoid read-only exceptions in certain cases. A read only data page is getting modified in the sense that new embedded properties are added to it but one cannot set a value in that. it won't create a backward compatibility.
Resolution
Here’s the explanation for the reported behavior:
Write a when condition in data transform and use OOTB RUF's in the when rule to evaluate the embedded property whether it is present on the clipboard or not before updating the data page.
Published March 5, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.