Getting Error CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY when inserting LogEntry records #756
Labels
Layer: Log Management
Items related to the custom objects & Logger Console app
Logging Source: Apex
Items related to using Logger within Apex
Type: Bug
Something isn't working
Milestone
Package Edition of Nebula Logger
Unlocked Package
Package Version of Nebula Logger
v4.14.7
New Bug Summary
I had the Logger working correctly but suddenly stopped working. The Log was being created but with no Log Entries, or sometimes some of them but not all.
I included the Automated Process in the Debug Logs to see the logs and I found the following error:
Since the DML operation is an upsert, I couldn't use dmlOptions to indicate the truncation of fields, so I had to put a
.left(2000)
on theLogEntryHandler
wherever the fieldOriginSourceSnippet__c
was being set and that did the trick.I don't know if there is a better solution but I wanted to issue this bug so it can be fixed in the future.
The text was updated successfully, but these errors were encountered: