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

Database-General Unable to obtain data source

SA-61927

Summary



Update to Pega 7.4 fails to update the rules schema.


Error Messages



[java] Caused by: com.pega.pegarules.pub.database.ConfigurationException: Database-General Unable to obtain data source "java:comp/env/jdbc/MyDataSource", as it is undefined


Steps to Reproduce

  1. Update Pega 7.2 to Pega 7.4.
  2. Run update script.


Root Cause



A defect in Pegasystems’ code or rules.
The application has an external datasource, jdbc/MyDataSource, with classes in Pega which point to tables in the database. The update script should skip these references; however, it attempts to process them.



Resolution



Perform the following local-change: 
  1. Remove the Data-Admin-DB-Name rule with jdbc/MyDataSource reference and remap the tables to PegaRULES
  2. Run the migrate and upgrade scripts of the rules schema objects and the rest of the upgrade steps.  
  3. Post upgrade, reinstate the deleted rule and update the table mappings.
If required, replace the datasource reference in Data-Admin-DB-Name rule jdbc/MyDataSource with JDBC URL connection.

Published August 30, 2018 - 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