Data Exception Error Trying to Delete Pay Categories
Hi there,
We are trying to clean up our file and removing unusued payroll categories which have NO linked transactions. We have removed these pay categories from standard pays so they have no links to any card files but when we try to delete we get error message "DataException".
Is there a fix for this please?
Thanks
Tash
Hi Tash2019
The error:
The primary key value cannot be deleted because references to this key still exist. [ Foreign key constraint name = FK_ReportablePaymentSummaryFieldPayrollCategoryMap_PayrollCategory ]
indicates that these payroll categories have been mapped for payment summary purposes. So they are 'in use' and MYOB will not allow you to delete - As I mentioned - the developers didn't consider this possibility, and so did not provide a useful message to guide you to a solution.
Try going to Command Centres > Payroll > Prepare Payment Summaries (from menu bar) and go to the mapping screen and untick or de-select these pay categories, they will be linked to Gross and or Allowances - perhaps untick all.
Then try to delete.
Regards
Gavin