Data Exception Error Trying to Delete Pay Categories

This thread is now closed to new comments.
Some of the links and information provided in this thread may no longer be available or relevant.
If you have a question please start a new post.
Tash2019
Experienced Cover User
88 Posts
Experienced Cover User
Australia
Experienced Cover User

88Posts

3Kudos

0Solutions

Solved: Go to Solution

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

7 REPLIES 7
Doreen_P
MYOB Moderator
3,365 Posts
MYOB Moderator
MYOB Moderator

3,365Posts

174Kudos

366Solutions

Re: Data Exception Error Trying to Delete Pay Categories

Hi @Tash2019 

 

Thanks for your post.

 

Please log out then log back in to your AccountRight then try to delete those payroll categories again. If you will still receive the error message, kindly attach a screenshot of the error. Make sure to remove sensitive information from the screenshot before posting in the Forum.

 

Best regards,

Doreen

MYOB Community Forum

Online Help| Forum Search| my.MYOB| Download Page

Did my answer help?

Accept it as a Solution
Leave a to tell others

Tash2019
Experienced Cover User
88 Posts
Experienced Cover User
Australia
Experienced Cover User

88Posts

3Kudos

0Solutions

Re: Data Exception Error Trying to Delete Pay Categories

Hi @Doreen_P 

 

Thank you, have tried that but it continues to occur with the same payroll categories over and over.

 

The error message is attached.

 

Thank you

 

Tash

 

 

Error.PNG
gavin12345
Ultimate User
5,010 Posts
Ultimate User
Australia
Ultimate User

5,010Posts

911Kudos

635Solutions

Re: Data Exception Error Trying to Delete Pay Categories

Hi @Tash2019 

 

I suspect this is from a glitch in MYOB - while you may not have any linked transactions, the pay category is likely required for some other purpose - however MYOB developers may not have prepared an appropriate message for this.

 

Perhaps advise what the payroll category is called - this might give someone a clue as to cause.

 

If you have never used this pay category and cannot delete it, rename it as one you will need and use that. As long it is not a system one like Base Hourly or Base Salary.

 

Regards

Gavin

(gavinw222@gmail.com)
Tash2019
Experienced Cover User
88 Posts
Experienced Cover User
Australia
Experienced Cover User

88Posts

3Kudos

0Solutions

Re: Data Exception Error Trying to Delete Pay Categories

Thank you - there are various different wage categories that are not deleting, there doesnt seem to be a pattern to which ones I can delete and which ones I can't, but none of them are the base system categories.

 

Annual leave - with no linked wage expense account

Annual leave loading

IT allowance

Motor Vehicle allowance

Team leader allowance (there were 6 identical categories and I have been able to delete 3)

 

Changing the titles is a good idea but there are about 30 of them so a permanent solution would be much better.

Tash2019
Experienced Cover User
88 Posts
Experienced Cover User
Australia
Experienced Cover User

88Posts

3Kudos

0Solutions

Re: Data Exception Error Trying to Delete Pay Categories

This might help - I got an error log this time (attached)

gavin12345
Ultimate User
5,010 Posts
Ultimate User
Australia
Ultimate User

5,010Posts

911Kudos

635Solutions

Accepted Solution Solved

Re: Data Exception Error Trying to Delete Pay Categories

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

(gavinw222@gmail.com)
Tash2019
Experienced Cover User
88 Posts
Experienced Cover User
Australia
Experienced Cover User

88Posts

3Kudos

0Solutions

Re: Data Exception Error Trying to Delete Pay Categories

That seems to have done the trick - thank you so much! You've saved us a huge amount of hassle!

 

Didn't find your answer here?

Try using advanced search to find a post more easily Advanced Search
or
Get the conversation started and make a new post Start a Post