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

Error when running query in Query Inspector or Query Runner

SA-52704

Summary



Error occurs when running a query in the Query Inspector or Query Runner.


Error Messages



There is no configuration (no Data-Admin-DB-Name instance) for database Read-only PegaDATA


Steps to Reproduce

  1. Log in to the Pega Developer portal
  2. Navigate to System > Database > Query Inspector
  3. Select PegaDATA from drop down and paste the SQL
  4. Click Generate Explain Plan


Root Cause



An issue in the custom application code or rules. The prconfig.xml file was not configured with the read-only user data source settings which are required to run queries from the application.


Resolution

Perform the following local-change:

Add the below settings to the prconfig.xml file:

<env name="database/databases/PegaRULES/dataSourceReadOnly" value="java:comp/env/jdbc/PegaRULESReadOnly"/>

<env name="database/databases/PegaDATA/dataSourceReadOnly" value="java:comp/env/jdbc/PegaRULESReadOnly"/>



Published March 19, 2018 - Updated October 8, 2020

Was this useful?

33% 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