Hi,
Can you please explain why you are writing the workflow log to a Z table? Why store the same information in two places - inconsistencies between them are inevitable.
I'm sure there'a good reason.. but I can't think of one right now.
cheers
Paul