Skip to main content

Support Article

Issue with createWorkPage final activity in new version

SA-80862

Summary



Error occurs on creating a child case using the parent case data when employing the createWorkPage final and AddCoveredWork activities.


Error Messages



Trying to save an invalid page: .pxInsName: Keys of Instance Value must be specified Trying to save an invalid page: page is not valid


Steps to Reproduce

  1. Open the parent case.
  2. Call the createWorkPage activity to create a workpage for the child case by passing all the Cover case details and InsClass of the child case (which must be created).
  3. Call the AddCoveredWork activity to create the child case.
  4. Save the changes and commit.


Root Cause



The case was not created beacuse, the parent case work page was passed as the parameter to the Close activity in the createWorkPage activity's Step 7. This work page was removed in the WorkUnlock activity which was invoked in the Close activity.
Since the page was removed when the RecalculateAndSave was called in the AddCoveredWork, it failed to find the pxInsName and the error occurred.



Resolution



Perform the following local-change:

Use the AddCoveredWork activity (instead of the CreateWorkPage activity) by passing a page containing all the property values that are required for child case creation as the Step page to the AddCoveredWork activity.
Suggest Edit

Published August 15, 2019 - Updated December 2, 2021

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

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