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

WrongModeException on DataSet.Execute with partition key



When calling DataSet.Execute on a DataSet configured with a partition key, the system throws a WrongModeException exception.

Error Messages The property pyWorkPage.pxCreateSystemID was of mode String while was expecting Java Object mode. Details: (none)

Steps to Reproduce

1. Configure a DataSet with a partition key
2. Attempt to "save" a record by calling DataSet.Execute
3. Observe the system throws a WrongModeException error stating that it expects a Java Object instead of a string
4. If the user attempts to use a DataSet with no partition key, it throws a NullPointerException

Root Cause

A defect in Pegasystems’ code or rules.


Apply HFIX-35887

Suggest Edit

Published August 26, 2017 - Updated October 8, 2020

Did you find this content helpful? Yes No

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.

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