This may have already been answered.
Does anyone have a good general-purpose SQL query to provide a list out of the K2 database of workflow errors? I'd like to set up a smart object/view to monitor ALL my workflows for ones that error out.
This is what I've come up with so far:
select top 100 percent e.id, p1.FullName, date, e.descr, itemname
from k2.Server.ErrorLog e
inner join k2.ServerLog.procset p1 on p1.ProcVerID = e.ProcID
order by date desc
And it works up until the point a specified workflow gets modified, then the ProdID from the error table no longer matches the ProcVerID on the procset table.
There's an "Object ID" column on the ErrorLog table, but I can't figure out what that joins to. All I want to get as a result set is the name of the workflow and the date of the error the item name and the error description for the actual WORKFLOW, not hte current version of the workflow.
Thoughts?
My guess is that this is pretty easy...I'm just not finding the right table to join to.
Rob