Facing intermittent INVALID_REFERENCE_KEY Error while logging #797
Unanswered
rishabkumar-03
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We started getting INVALID_REFERENCE_KEY error recently and it is intermittent. There's no issue with majority of Rest APIs that we're using but intermittently fails for a few. There's no valuable information in the debug logs that might indicate what the issue is. We've updated the package to the latest version (v4.14.13) but still encountering the issue. Happens 2-3 times a week.
Error message : {"message":"Upsert failed. First exception on row 0; first error: INVALID_CROSS_REFERENCE_KEY, invalid cross reference id: []"}
Stack trace for the Nebula Logger classes:
LoggerDataStore.Database.upsertRecords: line 266, column 1
Class.LogEntryEventHandler.upsertLogEntries: line 368, column 1
Class.LogEntryEventHandler.executeAfterInsert: line 63, column 1
Class.LoggerSObjectHandler.execute: line 125, column 1
Class.Logger.saveLog: line 3237, column 1
Class.Logger.saveLog: line 3150
We understand it is related to some lookup field as we are logging Log Entries for the entire transaction but no luck in getting to know the root cause and what is weird is, it works fine most of time time but fails for a few transactions. There has been no change in code since we started getting the issue. Any help/suggestion is appreciated. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions