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

Incorrect mode exception in Work- performPreProcessing activity



Incorrect mode exception occurs in the Work- performPreProcessing activity.

Error Messages

The property pyDeferErrors was of mode Page while the method on stack . was expecting String mode.  Details: (none)

Steps to Reproduce

  1. Configure a data page to obtain the results of a work page type which does not have pxFlow entries.
  2. Configure this as the source to  a grid.
  3. In the last column of the grid, configure a button.
  4. On click of the button, launch the flow action.

Root Cause

Step 9 of the Work-PerformPreProcessing activity obtains the pxFlow entry if it exists. If the pxFlow entry is absent, then the activity creates a new entry. Here, the source data page is read-only. Hence, the entry is not created and the logic to fetch the properties in the pxFlow caused the issue.


Perform the following local-change:

Modify the data page mode to editable since it is in the thread scope such that the Work-.performPreProcessing activity creates and processes dummy pxFlow entries.

Published August 19, 2019 - 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