FOREIGN KEY Constraint Error on Timesheet Update Import

Modified on Wed, 1 May at 4:25 PM

FOREIGN KEY Constraint Error on Timesheet Update Import

ISSUE: When importing Timesheet in UPDATE mode, the report gives FOREIGN KEY contains database level error. 

Records need to be removed from back end to make fixes and re-run the Import. 

A close-up of a computer screen

Description automatically generated

 

PROCESS OVERVIEW:

 

STEP 1: Isolate the Data Issue and Fix

ERROR = Override Location had only 1 digit and was configured. 

FIX = Either update the values in OVERRIDE_LOCATION or change the field to Skip Column Optional. 

  • Any Location has to be 2 Digits (Add 0 in front of value).

 

BOARD CONTROL > GENERAL TABLES > IMPORT PROFILE MAINTENANCE > ATE_HRLY

A screenshot of a computer

Description automatically generated

**Override Location should be configured as Skip Column**

 

A screenshot of a computer

Description automatically generated

**Configured as Skip Column**

 

STEP 2: Delete the Timesheet Records (without Batch associated) from EC_WEB_TS_TRANS 

select * from EC_WEB_TS_TRANS

where EMP_GROUP_CODE = 'ABC123'

order by WORK_DATE desc

**Delete Records which were Imported with File that had Errors**

 

PAYROLL > PAY INPUT > HOURLY & DAILY TIMESHEET IMPORT PROCESS

**Trial > Submit > Update > Submit**

 

 

 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article