Events Not Written To Dw_stg_data Because of Error cannot insert NULL into ("DW_STAGE"."DW_STG_DATA"."DATE_INSERTED") (Doc ID 2324447.1)

Last updated on NOVEMBER 02, 2017

Applies to:

Oracle Knowledge - Version 8.6 and later
Information in this document applies to any platform.

Symptoms

The event router is not updating the data into dwstage after updating the event table which keeps Analytics from processing new data.

####<Oct 30, 2017 11:23:27 AM PDT> <Error> <com.inquira.analytics.log.client.DatabaseLoggingImpl> <M1OKAA10> <AnalyticsEventRouter_Server> <[ACTIVE] ExecuteThread: '38' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <BEA1-0B993E466279E260483C> <> <1509387807222> <BEA-000000> <Exception while logging with query:[INSERT INTO DW_STG_DATA (DATA_ID, CHANNEL_ID, CONTENT_ID, CONTENTTEXT_ID, DOCUMENT_ID, EVENT_NAME, LOCALE_ID, REPOSITORY_ID, IP_ADDRESS, REFERER, SESSION_ID, SESSION_REPORTING_GROUP_ID, SESSION_USER_ID, TIMESTAMP, TIMESTAMP_STR, TYPE, USER_ID, VERSION_AUTHOR_ID, VERSION_OWNER_ID) VALUES (DW_STG_DATA_SEQ.NEXTVAL, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)], Loggable: {"userId":"3920e75b92f74e5aa2a21d68d4b1ae15","channelId":"c30184f73b3d4e98b2dd7094ef37f13d","contentTextId":"4c80862b58fc468d8e4ffec3bdc07b0c","contentId":"c96aeca40c824b2aa6ca6023b9d336b4","documentId":"SM1373199","localeId":"en_US","versionAuthorId":"59c17c214a1643b589661ec625ec11a5","versionOwnerId":"59c17c214a1643b589661ec625ec11a5","repositoryId":"92f8087d86e54f79b8535ec2c54a7f00","timestamp":"Oct 30, 2017 11:23:14 AM","sessionId":"9b1129c9-56fc-44d7-ad3a-1dd0144ec38a","sessionReportingId":"N/A","sessionUserId":"3920e75b92f74e5aa2a21d68d4b1ae15","timestampStr":"20171030"} : java.sql.BatchUpdateException: ORA-01400: cannot insert NULL into ("DW_STAGE"."DW_STG_DATA"."DATE_INSERTED")

java.sql.BatchUpdateException: ORA-01400: cannot insert NULL into ("DW_STAGE"."DW_STG_DATA"."DATE_INSERTED")

at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:12296)
at oracle.jdbc.driver.OracleStatementWrapper.executeBatch(OracleStatementWrapper.java:246)
at weblogic.jdbc.wrapper.PreparedStatement.executeBatch(PreparedStatement.java:216)

Changes

Something happened to the DW_STG_DATA table to drop the default values.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms