Eric,
The time it takes the purge to finish depends on your transaction volumn and the server you have. My company has 14 restaurants all using 3700's. One does about 1500 transactions per day, has a server that's about a year old and takes 2 minutes to purge. Another, (about to be upgraded), does around 6000 transactions per day, is running on a 6 year old HP e800, and take 7-8 minutes to purge. This is only purging one day's worth of transactions, so depending on your system its possible for a 14 day purge to take a half hour. It will also peg the CPU usage, so try to do it when the store is closed.
Purging issues sometimes occur when a check is left open for a very long time. Micros will sometimes purge around checks like this but more often it'll stop at the oldest open check. Run this query in dbisql:
Code:
select * from micros.chk_dtl
where chk_open = 'T'
order by chk_open_date_time
This will show all open checks with the oldest on top. If there are checks older than 14 days still open, they'll have to be closed before any purging will happen.
You can also get rid of the "where chk_open = 'T'" line to see how far back your purging will have to go to catch up.
The error you're getting sounds more like your trans_dtl table may be corrupted though. CFK10TRANS_DTL is a foreign key on the trans_dtl table linking the check employee to the employee definition table (emp_def).
Here's what I'd do (on a test pc first if possible):
- Make a backup of the database and put it somewhere outside the micros directories "just in case".
- Rebuild the database.
- Try to purge totals.
- If the purging finished without errors you're back in business. Run the purge until the oldest check in the detail table is 14 days back.
- If not you may have to clear totals.
Either way, when you've either cleared totals or purged everything up to date, rebuild the database. When you have purging issues the transaction tables get bloated with all the unpurged data. Clearing & purging removes the data, but not the allocated space, so you've got a database thats taking up a lot more drive space than the actual data needs.
Rebuilding a full database can take a couple of hours, as can clearing totals. If you rebuild after clearing totals it'll go pretty quick, usually around 20 minutes.
Pat