
If you have ever weeped or gnashed your teeth over the Kronos Transaction Assistant, then perhaps we can assist with at least the weeping part (see your dentist about the gnashing). There are two Kronos database tables that contain all the information that you need to know about errors that are displayed on Transaction assistant. These tables are FAILEDXMLDATA and FAILEDXMLBODY. And here’s a query that will pull all person-level data out:
select distinct a.failedxmldataid "Error ID",c.personnum "Empl ID",
c.personfullname "Employee Name",
c.employmentstatus "Kronos Status",
convert(char,c.employmentstatusdt,101) "Kronos Status Dt",
convert(char,c.companyhiredtm,101) "Kronos Hire Dt",
convert(char,b.updatedtm,120) "Error Dt/Time",b.errorcode "Err Code",
substring(b.sourcedetails,1,25) "Import Source",
rtrim(d.fieldname) "Field Name",
substring(d.internalmesgtxt,charindex('The person',d.internalmesgtxt),190) "Error Message"
from failedxmlbody a,
failedxmldata b,
vp_employeev42 c,
importresult d
where a.failedxmldataid = b.failedxmldataid
and substring(a.xmlreqbody,charindex('<PersonNumber>',a.xmlreqbody)+14,07)
= c.personnum
and charindex('<PersonNumber>',a.xmlreqbody) > 0
and a.xmlreqkey = 0
and b.importresultid = d.importresultid
and b.updatedtm >= '@@Date to Display@@' + ' ' + '**Start Time (hh:mm)**' + ':00'
and b.updatedtm <= '@@Date to Display@@' + ' ' + '**End Time (hh:mm)**' + ':59.999'
order by c.personfullname