Hi,
Are you using attendance quotas in your solution? Also, are you using a copy of schema TM00?
If you are not using attendance quotas in your solution, can you comment out the line:
P2007 TS20 GEN
Let me know if this is the case or not.
Thanks and regards,
Vivek Barnwal