SAP Knowledge Base Article - Public

3839846 - OCN learning event API fails with SQLException addComponentTrainingEvent

Symptom

OCN API is not able to record Learning event to the users.

Caused by: com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: [10001]: user-defined error: "<TENANT_ID>_SALES_TMS"."PKG_LEARNINGHST_FULL_PROCESS_CPNT_EVTHST": line 1030 col 24 (at pos 47793): 287-cannot insert NULL or update to NULL: "<TENANT_ID>_SALES_TMS"."PKG_LEARNINGHST_FULL_PROCESS_CPNT_EVTHST": line 1047 col 13 (at pos 48405): "<TENANT_ID>_SALES_TMS"."PT_AU_CBT_STUD_CPNT_INTERACTION": line 11 col 9 (at pos 670): "<TENANT_ID>_SALES_TMS"."PKG_EVENT_ADD_ONLINECONTENT_INTERACTION_EVENT": line 14 col 5 (at pos 390): Not nullable "TX_ID" column while executing trigger <TENANT_ID>_SALES_TMS:PT_AU_CBT_STUD_CPNT_INTERACTION (triggered by UPDATE on table <TENANT_ID>_SALES_TMS:PA_CBT_STUD_CPNT)

Environment

SAP SuccessFactors Learning

Reproducing the Issue

  1. Assign and launch (but does not complete) an OCN item from KnowBe4.
  2. Request the Token using Bruno
  3. Now attempt to complete the course using the OCN API.

Cause

Product defect.

Resolution

The cause of the issue has been already fixed in b2611.

After the Production update in November, this issue will no longer happen.

Keywords

API, OCN, Odata, Learning, history, record, event, PKG_LEARNINGHST_FULL_PROCESS_CPNT_EVTHST, TX_ID, null, PT_AU_CBT_STUD_CPNT_INTERACTION, PA_CBT_STUD_CPNT, KI1H2026, LRN-216005 , KBA , LOD-SF-LMS-ODA , Web Services OData , LOD-SF-LMS-OCN , Open Content Network , Known Error

Product

SAP SuccessFactors Learning all versions