10702 type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception
Scenario:
- Upgrading K2 from 5.5 to 5.6 with Fix Pack 5 or later.
- Existing Oracle service instances fail to refresh, and SmartObjects encounter errors.
- Specific error message: 10702 An error occurred in the Oracle Service Instance. System.TypeInitializationException: The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception.
Cause:
- Incompatibility with Oracle 19c, now required for K2 5.6 Fix Pack 5 and beyond.
Resolution:
Install Oracle Data Access Components (ODAC) 19c:
- Download: https://www.oracle.com/database/technologies/net-downloads.html#
- Extract the downloaded file.
- Open an elevated command prompt (Run as administrator).
- Navigate to the extracted directory.
- Run:
install.bat all c:\oracle myhome true true
Install Microsoft Visual C++ 2010 Redistributable Package (both x86 and x64):
- Download: https://www.microsoft.com/en-us/download/details.aspx?id=26999
- Install both versions.
Key Considerations:
- Cloud Environments: Ensure accessibility of on-premises Oracle databases for K2 Cloud using K2 Cloud Secure Data Access (SDA), a VPN, or other secure connections.
- File Backup: Back up the following files before ODAC installation for potential comparison:
- C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Config\machine.config
- C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config
After completing these steps, Oracle service instances should function correctly, and SmartObjects should execute without errors.

Comments
Post a Comment