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
- Update Pega 7.2 to Pega 7.4.
- 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:
- Remove the Data-Admin-DB-Name rule with jdbc/MyDataSource reference and remap the tables to PegaRULES.
- Run the migrate and upgrade scripts of the rules schema objects and the rest of the upgrade steps.
- Post upgrade, reinstate the deleted rule and update the table mappings.
Published August 30, 2018 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.