I need to delete a single Error Log record from the System table "ErrorLog"
I need to delete a single record in the Error Log but my Data Adapter won't let me, complaining about "unsafe SQL statements".
In a rather bone-headed move, while developing a BR, I accidentally wrote an insanely large block of text to the Error Log -- like somewhere between 1.3 and 1.5 million characters -- in a single record via BRApi.ErrorLog.LogMessage.
It's made the Error Log workspace page pretty much unusable because it's trying to read that record to display it. It takes 5 or 6 minutes to display the Error Log.
After finding the UniqueID for the offending record in the ErrorLog table, I tried the following SQL in a Data Adapter to remove the record:
DELETE TOP (1) from myOneStream_Framework.dbo.ErrorLog where UniqueID = 'bb5158a6-aae9-471c-b883-edddc8640a5e'
Apparently, OneStream thinks I am a cyber-criminal and blocked my code execution with the following message:
Database query error. The specified SQL statement is not safe.
I also tried:
UPDATE myOneStream_Framework.dbo.ErrorLog
SET Description = 'log entry trimmed'
where UniqueID = 'bb5158a6-aae9-471c-b883-edddc8640a5e'
And was again rewarded with a resounding slap on the hand:
Database query error. The specified SQL statement is not safe.
Any suggestions on how I can get rid of this monstrous record?

