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:

  1. Install Oracle Data Access Components (ODAC) 19c:

  2. Install Microsoft Visual C++ 2010 Redistributable Package (both x86 and x64):

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

Popular posts from this blog

Blocking Error during K2 5.6 Server migration

Client Credentials flow with K2 Cloud with Odata, Workflow REST or SCIM

Blocking error RegisterServiceInstanceObjects when upgrading to K2 5.6/5.7